update
This commit is contained in:
parent
db588acce0
commit
514595c5a7
2 changed files with 26 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue