more daily bonus for prestige

This commit is contained in:
Face 2025-06-25 17:03:52 +03:00
parent 96cb799cc7
commit ee29f97ca4
4 changed files with 47 additions and 11 deletions

View file

@ -82,6 +82,7 @@ export const POST: RequestHandler = async ({ request, locals }) => {
.set({
baseCurrencyBalance: '100.00000000',
prestigeLevel: nextPrestige,
lastRewardClaim: null,
updatedAt: new Date()
})
.where(eq(user.id, userId));
@ -92,7 +93,7 @@ export const POST: RequestHandler = async ({ request, locals }) => {
userId: userId,
type: 'SYSTEM',
title: `${prestigeName} Achieved!`,
message: `Congratulations! You have successfully reached ${prestigeName}. Your portfolio has been reset and you can now start fresh with your new prestige badge.`,
message: `Congratulations! You have successfully reached ${prestigeName}. Your portfolio has been reset, daily reward cooldown has been cleared, and you can now start fresh with your new prestige badge and enhanced daily rewards.`,
});
return json({