commented out check if user is editing due to broken

This commit is contained in:
John McLear 2013-02-07 07:04:12 -08:00
parent 96bfff0636
commit 67887b074a

View file

@ -39,7 +39,7 @@ exports.padUpdate = function (hook_name, _pad) {
};
exports.notifyBegin = function(padId){
console.debug("Getting pad email stuff for "+padId);
console.warn("Getting pad email stuff for "+padId);
db.get("emailSubscription:" + padId, function(err, recipients){ // get everyone we need to email
if(recipients){
async.forEach(Object.keys(recipients), function(recipient, cb){
@ -121,6 +121,8 @@ exports.sendUpdates = function(padId){
// Is the user editing the pad?
exports.isUserEditingPad = function(padId, user, cb){
console.warn("padId is",padId);
/*
API.padUsers(padId, function(callback, padUsers){ // get the current users editing the pad
var userIsEditing = false;
console.debug("Current Pad Users:"+padUsers);
@ -140,6 +142,8 @@ exports.isUserEditingPad = function(padId, user, cb){
cb(null, userIsEditing);
});
});
*/
cb(null, false);
};
// Creates an interval process to check to send Updates based on checkFrequency and it returns an ID