aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-25 03:16:38 +0000
committerHumairAK <humair88@hotmail.com>2016-07-25 03:16:38 +0000
commitfc3cc6aee7ce7a28539d332902c0f9923d298c71 (patch)
treed7ed316afc867a33c93e7f6d8063df4c3fd17109 /node_simple.js
parent482401fa5777b910b099f96b0abdadf1d4cfa54c (diff)
added all admin panel functionality
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js6
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) {