fix migration error at fleet page

This commit is contained in:
root
2026-05-25 00:58:10 -04:00
parent 5ef9efb8a9
commit 95376d3223
6 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ import * as repo from './admin.repo'
const ADMIN_RESET_TTL_MINUTES = 60
const PLAN_MONTHLY_AMOUNT: Record<string, number> = {
STARTER: 29900,
GROWTH: 59900,
STARTER: 2990,
GROWTH: 3990,
PRO: 99900,
}
+1 -1
View File
@@ -169,7 +169,7 @@ export async function createSubscriptionInvoice(
data: {
companyId,
subscriptionId,
amount: 29900,
amount: 2990,
currency: 'MAD',
status: 'PENDING',
paymentProvider: 'AMANPAY',
@@ -14,12 +14,12 @@ const LANGUAGE_CURRENCY: Record<string, Currency> = { ar: 'MAD', fr: 'EUR', en:
const PRICES: Record<string, Record<Currency, { monthly: number; annual: number }>> = {
STARTER: {
MAD: { monthly: 299, annual: 2990 },
MAD: { monthly: 299, annual: 299 },
USD: { monthly: 29, annual: 290 },
EUR: { monthly: 27, annual: 270 },
},
GROWTH: {
MAD: { monthly: 599, annual: 5990 },
MAD: { monthly: 599, annual: 399 },
USD: { monthly: 59, annual: 590 },
EUR: { monthly: 55, annual: 550 },
},