♻️ Improvements to adding/changing participant (#1108)

This commit is contained in:
Luke Vella 2024-05-18 13:02:18 +08:00 committed by GitHub
parent 46cc893c93
commit 469fa9bdb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 142 deletions

View file

@ -1,5 +1,6 @@
import { prisma } from "@rallly/database";
import { TRPCError } from "@trpc/server";
import { waitUntil } from "@vercel/functions";
import { z } from "zod";
import { createToken } from "../../../session";
@ -158,7 +159,7 @@ export const participants = router({
);
}
await Promise.all(emailsToSend);
waitUntil(Promise.all(emailsToSend));
return participant;
}),