[#1977] port pet-feeding to user.ops, so that it's now available in the API. Also add handling of 200 errors to simply notify and continue on up to server (friendly messages)
This commit is contained in:
@@ -505,6 +505,9 @@ _.each(shared.wrap({}).ops, function(op,k){
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
api.batchUpdate = function(req, res, next) {
|
||||
if (req.body[0] && req.body[0].data)
|
||||
return res.json(400, {err: "API has been updated, please refresh your browser or upgrade your mobile app."})
|
||||
|
||||
var user = res.locals.user;
|
||||
var oldSend = res.send;
|
||||
var oldJson = res.json;
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ var UserSchema = new Schema({
|
||||
contributions: String // a markdown textarea to list their contributions + links
|
||||
},
|
||||
|
||||
balance: Number,
|
||||
balance: {type: Number, 'default':0},
|
||||
filters: {type: Schema.Types.Mixed, 'default': {}},
|
||||
|
||||
purchased: {
|
||||
|
||||
Reference in New Issue
Block a user