mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
fix pitas fix
This commit is contained in:
parent
c960186f8d
commit
bc76913a6d
1 changed files with 7 additions and 1 deletions
|
@ -115,7 +115,13 @@ exports.doesPadExists = function(padId, callback)
|
||||||
db.get("pad:"+padId, function(err, value)
|
db.get("pad:"+padId, function(err, value)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
callback(null, value != null && value.atext);
|
if(value != null && value.atext){
|
||||||
|
callback(null, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
callback(null, false);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue