mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
Speed up team creation
This commit is contained in:
parent
c7036da485
commit
4beba4942b
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user