Skip to content

Node.js based forum software built for the modern web

fixed potential bug in rewards

psychobunny80116c3e300c
diff --git a/src/rewards/admin.js b/src/rewards/admin.js
index 6136e4f4b3..30bed9e0e8 100644
--- a/src/rewards/admin.js
+++ b/src/rewards/admin.js
@@ -15,7 +15,7 @@ rewards.save = function(data, callback) {
data.id = id;
- async.parallel([
+ async.waterfall([
function(next) {
rewards.delete(data, next);
},