mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
fix: #9827, fix reward duplication
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user