fix: Fixed claimed waifu decay that was introduced in a recent patch

dev: Cleaned up a little bit in medusa loading. Clean medusa unloading will be broken for a while probably
This commit is contained in:
Kwoth
2024-09-23 18:18:38 +00:00
parent a362ee90fc
commit 716e092fd0
2 changed files with 27 additions and 15 deletions

View File

@@ -577,7 +577,7 @@ public class WaifuService : INService, IReadyExecutor
{
await using var uow = _db.GetDbContext();
await uow.GetTable<WaifuInfo>()
.Where(x => x.Price > minPrice && x.ClaimerId == null)
.Where(x => x.Price > minPrice && x.ClaimerId != null)
.UpdateAsync(old => new()
{
Price = (long)(old.Price * claimedMulti)