summaryrefslogtreecommitdiff
path: root/src/node/db/PadManager.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/db/PadManager.js')
-rw-r--r--src/node/db/PadManager.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/node/db/PadManager.js b/src/node/db/PadManager.js
index 4e3a3199..5f08b1b1 100644
--- a/src/node/db/PadManager.js
+++ b/src/node/db/PadManager.js
@@ -115,7 +115,13 @@ exports.doesPadExists = function(padId, callback)
db.get("pad:"+padId, function(err, value)
{
if(ERR(err, callback)) return;
- callback(null, value != null && value.atext);
+ if(value != null && value.atext){
+ callback(null, true);
+ }
+ else
+ {
+ callback(null, false);
+ }
});
}