Speed up team creation

This commit is contained in:
Konstantin Wohlwend 2026-06-17 13:08:19 -07:00
parent c7036da485
commit 4beba4942b

View File

@ -133,7 +133,9 @@ export const teamsCrudHandlers = createLazyProxy(() => createCrudHandlers(teamsC
});
if (freePlanSubscription != null) {
await bulldozerWriteSubscription(prisma, freePlanSubscription);
// This is quite slow with current Bulldozer. Let's not block the team creation for this and run asynchronously.
// TODO: Run this synchronously once we have bulldozerjs
runAsynchronouslyAndWaitUntil(bulldozerWriteSubscription(prisma, freePlanSubscription));
}
const result = teamPrismaToCrud(db);