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);