From 64312d259d82fb155c1b9b13aa11bce41537b7d3 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 28 Dec 2024 02:03:25 -0800 Subject: [PATCH] Return proper response. --- src/pages/api/send.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/send.ts b/src/pages/api/send.ts index e2a450b72..cbcacae51 100644 --- a/src/pages/api/send.ts +++ b/src/pages/api/send.ts @@ -103,7 +103,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => { const session = req.session; if (!session?.id || !session?.websiteId) { - return; + return ok(res, {}); } const iat = Math.floor(new Date().getTime() / 1000);