feat: add In-Reply-To option (#165)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { createRoute, z } from "@hono/zod-openapi";
|
||||
import { PublicAPIApp } from "~/server/public-api/hono";
|
||||
import { getTeamFromToken } from "~/server/public-api/auth";
|
||||
import { sendEmail } from "~/server/service/email-service";
|
||||
import { emailSchema } from "../../schemas/email-schema";
|
||||
|
||||
|
@@ -70,7 +70,6 @@ export function getApp() {
|
||||
|
||||
let currentRequests: number;
|
||||
let ttl: number;
|
||||
let isNewKey = false;
|
||||
|
||||
try {
|
||||
// Increment the key. If the key does not exist, it is created and set to 1.
|
||||
|
@@ -29,6 +29,7 @@ export const emailSchema = z
|
||||
.max(10) // Limit attachments array size if desired
|
||||
.optional(),
|
||||
scheduledAt: z.string().datetime({ offset: true }).optional(), // Ensure ISO 8601 format with offset
|
||||
inReplyToId: z.string().optional().nullable(),
|
||||
})
|
||||
.refine(
|
||||
(data) => !!data.subject || !!data.templateId,
|
||||
|
Reference in New Issue
Block a user