I have an array / list, which is set by default to all the items checked = true
, But I have a special case, I have to set check = wrong
to id: 25
by default, got it? All items set to exclude
id = 25>
id: 25
.
So how can I do this from the part of Nodes?
I have a code here that is activated every time you uncheck any item
module.exports = {playChecked: function (params) ) {Var Promise = require ('bluebird'); New promise (function (fullfill, reject) {sports selection.findone ({user: params.yougar}) .exec (function (mistake, sports-face) {var newSport; if (mistake) {reject (new error (user ' Error in finding ';;; console.error (err);} and if (sport-badged) {newSport = gameChecked.sport || []; if (_incesx (sportscacked .port, params, sport)) {gameChecked.sport = _ Bridge (Newport, Parameters sport); Sport chicade .port = _.difference (newport, params, sport);} Other SportCodeSport = NewSport;} Sport Selection.Update ({User: Params.user}, {sport: newSport}. Exec (work (fault, game search update) {if (mistake) {reject ( New error ('Error on game check'); else else (fullCuffedUpdated);}}; if (Sport checksport) {gameChecked.sport.push (params.sport);} and {gameChecked.sport = [ Params.sport]}} and {sports: selection.Create ({sports: [parameters: sport], user: params.user}) .exec (function (mistake, created) {if (err) {reject (new Error ('kh Error on logged '));} and {fullfill (created);}}}; }}); }); }, ...};
game has been lost
Ultimate has given the code to false for id
s
then what is your Are you here?
No comments:
Post a Comment