🐛 fix: race condition in seeding

This commit is contained in:
Rafi Arrafif
2026-01-29 03:31:21 +07:00
parent 465ac7fb87
commit 1485971cb7
3 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ async function main() {
console.log("🌱 Running all seeds...");
console.log("🔌 Connecting to database...");
await userSystemSeed();
await userRoleSeed();
const userSystemSeedResult = await userSystemSeed();
const userRoleSeedResult = await userRoleSeed(userSystemSeedResult.id);
console.log("🌳 All seeds completed");
}