This commit is contained in:
mattyatea 2024-05-16 06:25:32 +09:00
parent db588acce0
commit 514595c5a7
2 changed files with 26 additions and 11 deletions

View file

@ -73,8 +73,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.userProfilesRepository.update({ userId: user.id }, {
loggedInDates: [...userProfile.loggedInDates, today],
});
this.usersRepository.update({ userId: user.id }, {
getPoints: userProfile.getPoints + todayGetPoints,
this.usersRepository.update( user.id, {
getPoints: user.getPoints + todayGetPoints,
});
this.notificationService.createNotification(user.id, 'loginbonus', {
loginbonus: todayGetPoints,