feat(wallet): initialize new wallets with a default coin amount

This commit is contained in:
2025-10-05 20:21:29 -05:00
parent b263b10b0f
commit 5bbc14a0cc
2 changed files with 20 additions and 26 deletions

View File

@@ -33,7 +33,7 @@ export async function getOrCreateWallet(userId: string, guildId: string) {
return prisma.economyWallet.upsert({
where: { userId_guildId: { userId, guildId } },
update: {},
create: { userId, guildId },
create: { userId, guildId, coins: 25 },
});
}