🐛 Fix services unimplmented

This commit is contained in:
2026-02-04 13:54:47 +08:00
parent 12199d99b7
commit 2641814a22
5 changed files with 46 additions and 34 deletions

View File

@@ -743,15 +743,12 @@ public class PaymentService(
await db.SaveChangesAsync();
}
public async Task<SnWalletFund> GetWalletFundAsync(Guid fundId)
public async Task<SnWalletFund?> GetWalletFundAsync(Guid fundId)
{
var fund = await db.WalletFunds
.Include(f => f.Recipients)
.FirstOrDefaultAsync(f => f.Id == fundId);
if (fund == null)
throw new InvalidOperationException("Fund not found");
return fund;
}