🐛 Fixes notification
This commit is contained in:
		| @@ -198,6 +198,8 @@ public class PaymentService( | ||||
|         if (order.PayeeWallet is null) return; | ||||
|         var account = await db.Accounts.FirstOrDefaultAsync(a => a.Id == order.PayeeWallet.AccountId); | ||||
|         if (account is null) return; | ||||
|          | ||||
|         AccountService.SetCultureInfo(account); | ||||
|  | ||||
|         // Due to ID is uuid, it longer than 8 words for sure | ||||
|         var readableOrderId = order.Id.ToString().Replace("-", "")[..8]; | ||||
|   | ||||
| @@ -319,13 +319,15 @@ public class SubscriptionService( | ||||
|     { | ||||
|         var account = await db.Accounts.FirstOrDefaultAsync(a => a.Id == subscription.AccountId); | ||||
|         if (account is null) return; | ||||
|          | ||||
|         AccountService.SetCultureInfo(account); | ||||
|  | ||||
|         var humanReadableName = | ||||
|             SubscriptionTypeData.SubscriptionHumanReadable.TryGetValue(subscription.Identifier, out var humanReadable) | ||||
|                 ? humanReadable | ||||
|                 : subscription.Identifier; | ||||
|         var duration = subscription.EndedAt is not null | ||||
|             ? subscription.EndedAt.Value.Minus(subscription.BegunAt).ToString() | ||||
|             ? subscription.EndedAt.Value.Minus(subscription.BegunAt).Days.ToString() | ||||
|             : "infinite"; | ||||
|  | ||||
|         await nty.SendNotification( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user