mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
show user history in admin panel
This commit is contained in:
@@ -229,7 +229,7 @@ api.acceptQuest = {
|
||||
headers: req.headers,
|
||||
});
|
||||
|
||||
await UserHistory.beginUserHistoryUpdate(user._id)
|
||||
await UserHistory.beginUserHistoryUpdate(user._id, req.headers['x-client'])
|
||||
.withQuestInviteResponse(group.quest.key, 'accept')
|
||||
.commit();
|
||||
},
|
||||
@@ -294,7 +294,7 @@ api.rejectQuest = {
|
||||
headers: req.headers,
|
||||
});
|
||||
|
||||
await UserHistory.beginUserHistoryUpdate(user._id)
|
||||
await UserHistory.beginUserHistoryUpdate(user._id, req.headers['x-client'])
|
||||
.withQuestInviteResponse(group.quest.key, 'reject')
|
||||
.commit();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user