fix: .deletewaifus should now work

This commit is contained in:
Kwoth
2025-01-17 13:14:21 +00:00
parent a01a646cbf
commit aaef365bdc

View File

@@ -16,9 +16,9 @@ public class GamblingCleanupService : IGamblingCleanupService, INService
public async Task DeleteWaifus() public async Task DeleteWaifus()
{ {
await using var ctx = _db.GetDbContext(); await using var ctx = _db.GetDbContext();
await ctx.GetTable<WaifuInfo>().DeleteAsync();
await ctx.GetTable<WaifuItem>().DeleteAsync(); await ctx.GetTable<WaifuItem>().DeleteAsync();
await ctx.GetTable<WaifuUpdate>().DeleteAsync(); await ctx.GetTable<WaifuUpdate>().DeleteAsync();
await ctx.GetTable<WaifuInfo>().DeleteAsync();
} }
public async Task DeleteWaifu(ulong userId) public async Task DeleteWaifu(ulong userId)