commented out check if user is editing due to broken
This commit is contained in:
parent
96bfff0636
commit
67887b074a
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,7 @@ exports.padUpdate = function (hook_name, _pad) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.notifyBegin = function(padId){
|
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
|
db.get("emailSubscription:" + padId, function(err, recipients){ // get everyone we need to email
|
||||||
if(recipients){
|
if(recipients){
|
||||||
async.forEach(Object.keys(recipients), function(recipient, cb){
|
async.forEach(Object.keys(recipients), function(recipient, cb){
|
||||||
|
@ -121,6 +121,8 @@ exports.sendUpdates = function(padId){
|
||||||
|
|
||||||
// Is the user editing the pad?
|
// Is the user editing the pad?
|
||||||
exports.isUserEditingPad = function(padId, user, cb){
|
exports.isUserEditingPad = function(padId, user, cb){
|
||||||
|
console.warn("padId is",padId);
|
||||||
|
/*
|
||||||
API.padUsers(padId, function(callback, padUsers){ // get the current users editing the pad
|
API.padUsers(padId, function(callback, padUsers){ // get the current users editing the pad
|
||||||
var userIsEditing = false;
|
var userIsEditing = false;
|
||||||
console.debug("Current Pad Users:"+padUsers);
|
console.debug("Current Pad Users:"+padUsers);
|
||||||
|
@ -140,6 +142,8 @@ exports.isUserEditingPad = function(padId, user, cb){
|
||||||
cb(null, userIsEditing);
|
cb(null, userIsEditing);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
cb(null, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Creates an interval process to check to send Updates based on checkFrequency and it returns an ID
|
// Creates an interval process to check to send Updates based on checkFrequency and it returns an ID
|
||||||
|
|
Loading…
Add table
Reference in a new issue