fix(order): tighten payment method filter by paid status
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m49s
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m49s
This commit is contained in:
@@ -106,7 +106,8 @@ public sealed class EfOrderRepository(TakeoutAppDbContext context) : IOrderRepos
|
||||
context.PaymentRecords.Any(record =>
|
||||
record.TenantId == tenantId &&
|
||||
record.OrderId == x.Id &&
|
||||
record.Method == paymentMethod.Value));
|
||||
record.Method == paymentMethod.Value &&
|
||||
(record.Status == PaymentStatus.Paid || record.Status == PaymentStatus.Refunded)));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(keyword))
|
||||
|
||||
Reference in New Issue
Block a user