This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/app/node_modules/winston/lib/winston/logger.js:435 | |
2014-12-12T21:54:16.141847+00:00 app[web.1]: var instance = created ? transport : (new (transport)(options)); | |
2014-12-12T21:54:16.141895+00:00 app[web.1]: ^ | |
2014-12-12T21:54:16.141926+00:00 app[web.1]: at Object.<anonymous> (/app/src/logging.js:27:16) | |
2014-12-12T21:54:16.141928+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10) | |
2014-12-12T21:54:16.141931+00:00 app[web.1]: at Function.Module._load (module.js:312:12) | |
2014-12-12T21:54:16.141930+00:00 app[web.1]: at Module.load (module.js:356:32) | |
2014-12-12T21:54:16.141925+00:00 app[web.1]: at Logger.add (/app/node_modules/winston/lib/winston/logger.js:435:41) | |
2014-12-12T21:54:16.141923+00:00 app[web.1]: TypeError: undefined is not a function | |
2014-12-12T21:54:16.221186+00:00 app[web.1]: [nodemon] app crashed - waiting for file changes before starting... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.users.update( | |
{'purchased.plan.consecutive.count':{$gte:1}}, | |
{$inc:{'purchased.plan.consecutive.count':1}} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/controllers/members.js b/src/controllers/members.js | |
index 9d30179..05b64be 100644 | |
--- a/src/controllers/members.js | |
+++ b/src/controllers/members.js | |
@@ -21,6 +21,7 @@ api.sendPrivateMessage = function(req,res,next){ | |
}, | |
function(member, cb){ | |
if (!member) return cb({code:404, err: 'User not found'}); | |
+ if (member.inbox.optOut && member.contributor.admin) return cb({code:401}, err: "Please report issues to Github"); | |
if (~member.inbox.blocks.indexOf(res.locals.user._id) // can't send message if that user blocked me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/controllers/members.js b/src/controllers/members.js | |
index 9d30179..05b64be 100644 | |
--- a/src/controllers/members.js | |
+++ b/src/controllers/members.js | |
@@ -21,6 +21,7 @@ api.sendPrivateMessage = function(req,res,next){ | |
}, | |
function(member, cb){ | |
if (!member) return cb({code:404, err: 'User not found'}); | |
+ if (member.inbox.optOut && member.contributor.admin) return cb({code:401}, err: "Please report issues to Github"); | |
if (~member.inbox.blocks.indexOf(res.locals.user._id) // can't send message if that user blocked me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/package.json b/package.json | |
index 16b1adf..b84e5bf 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -49,7 +49,8 @@ | |
"validator": "~3.19.0", | |
"winston": "~0.8.0", | |
"winston-mail": "~0.2.9", | |
- "winston-newrelic": "~0.1.4" | |
+ "winston-newrelic": "~0.1.4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/package.json b/package.json | |
index 16b1adf..b84e5bf 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -49,7 +49,8 @@ | |
"validator": "~3.19.0", | |
"winston": "~0.8.0", | |
"winston-mail": "~0.2.9", | |
- "winston-newrelic": "~0.1.4" | |
+ "winston-newrelic": "~0.1.4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/models/task.js b/src/models/task.js | |
index 4b99640..62e2803 100644 | |
--- a/src/models/task.js | |
+++ b/src/models/task.js | |
@@ -83,7 +83,8 @@ var TodoSchema = new Schema( | |
var RewardSchema = new Schema( | |
_.defaults({ | |
- type: {type:String, 'default': 'reward'} | |
+ type: {type:String, 'default': 'reward'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/models/user.js b/src/models/user.js | |
index 367178a..16031b1 100644 | |
--- a/src/models/user.js | |
+++ b/src/models/user.js | |
@@ -175,7 +175,9 @@ var UserSchema = new Schema({ | |
// Then add quest pets | |
_.transform(shared.content.questPets, function(m,v,k){ m[k] = Number; }), | |
// Then add additional pets (backer, contributor) | |
- _.transform(shared.content.specialPets, function(m,v,k){ m[k] = Number; }) | |
+ _.transform(shared.content.specialPets, function(m,v,k){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:website lefnire$ npm install -g strongloop | |
npm http GET https://registry.npmjs.org/strongloop | |
npm http 304 https://registry.npmjs.org/strongloop | |
npm http GET https://registry.npmjs.org/cpr | |
npm http GET https://registry.npmjs.org/debug | |
npm http GET https://registry.npmjs.org/fs.extra | |
npm http GET https://registry.npmjs.org/generator-loopback | |
npm http GET https://registry.npmjs.org/ini | |
npm http GET https://registry.npmjs.org/inflection | |
npm http GET https://registry.npmjs.org/is2 |