Await guild creation to fix a race condition
`Promise.all(...)` runs these simultaneously, yet role depends on the
guild to be created first. This can lead to a race condition. I've
awaited role creation too because the call to `Member.addToGuild(...)`
relies on the role to be created.
1 parent 4772731 commit ff692c19b77a7dcae07dcb71f33c4753db106f5d
@Zane Helton Zane Helton authored on 29 Jun 2025
Madeline committed on 29 Jun 2025
Showing 1 changed file
View
src/api/routes/guilds/templates/index.ts