fix: #9827, fix reward duplication

This commit is contained in:
Barış Soner Uşaklı
2021-09-22 23:56:34 -04:00
parent 1a61ffc595
commit 89af00d1d5
3 changed files with 9 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ const rewardsAdmin = require('../../rewards/admin');
const SocketRewards = module.exports;
SocketRewards.save = async function (socket, data) {
await rewardsAdmin.save(data);
return await rewardsAdmin.save(data);
};
SocketRewards.delete = async function (socket, data) {