fix: Fix Decimal serialization in rating_service for PostgreSQL compatibility

This commit is contained in:
Your Name
2026-04-01 01:25:34 +02:00
parent 271674a9c5
commit eb8d6463c5
2 changed files with 16 additions and 12 deletions

View File

@@ -219,7 +219,7 @@ const TRANSLATIONS: Record<Lang, Record<string, string>> = {
emailLabel: 'Email',
passwordLabel: 'Password',
planLabel: 'Plan',
roleLabel: 'Role',
roleLabel2: 'Role',
createBtn: 'Create',
cancelBtn: 'Cancel',
userCreated: 'User created successfully.',
@@ -388,7 +388,7 @@ const TRANSLATIONS: Record<Lang, Record<string, string>> = {
emailLabel: 'البريد الإلكتروني',
passwordLabel: 'كلمة المرور',
planLabel: 'الخطة',
roleLabel: 'الدور',
roleLabel2: 'الدور',
createBtn: 'إنشاء',
cancelBtn: 'إلغاء',
userCreated: 'تم إنشاء المستخدم بنجاح.',
@@ -604,6 +604,8 @@ export default function InternalAdminPage() {
}
}
// Fix duplicate roleLabel
async function handlePlanChange(userId: number, plan: 'free' | 'pro') {
if (!isAdmin) return;
setUpdatingUserId(userId);