diff options
Diffstat (limited to 'node_simple.js')
| -rw-r--r-- | node_simple.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/node_simple.js b/node_simple.js index 3c3abd7..b86542b 100644 --- a/node_simple.js +++ b/node_simple.js @@ -730,9 +730,9 @@ exports.add_comment = function (sol_id, fields, serverCallback) { } else { users.updateOne( { user_name: fields[1] }, { $inc: { comments: 1} }, function (err) { - if (err) callback(false, "Error: Some error occured while updating user info"); + if (err) serverCallback(false, "Error: Some error occured while updating user info"); else { - callback(true, "Success: comment added successfully"); + serverCallback(true, "Success: comment added successfully"); } }); @@ -1316,14 +1316,12 @@ exports.sendMail = function (mail_data, callback) { }); } - /* * * callback(success, error, data, message) * Returns the user's inbox (array of message objects) * */ - exports.checkMailbox = function (username, callback) { mongoFactory.getConnection(uri).then(function(db) { |
