Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

await transaction webhook

Carl-Gerhard Lindesvärd1b4a281b93e8
diff --git a/apps/dashboard/src/app/api/clerk/webhook/route.ts b/apps/dashboard/src/app/api/clerk/webhook/route.ts
index 544e6ce17..0ac54579a 100644
--- a/apps/dashboard/src/app/api/clerk/webhook/route.ts
+++ b/apps/dashboard/src/app/api/clerk/webhook/route.ts
@@ -78,7 +78,7 @@ export async function POST(request: Request) {
}
if (payload.type === 'user.deleted') {
- db.$transaction([
+ await db.$transaction([
db.user.update({
where: {
id: payload.data.id,