mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 09:38:49 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -61,7 +61,7 @@ ChecklistItems.attachSchema(
|
|||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
ChecklistItems.allow({
|
||||
|
|
@ -225,11 +225,6 @@ if (Meteor.isServer) {
|
|||
publishChekListUncompleted(userId, doc, fieldNames);
|
||||
});
|
||||
|
||||
ChecklistItems.before.update((userId, doc, fieldNames, modifier, options) => {
|
||||
modifier.$set = modifier.$set || {};
|
||||
modifier.$set.modifiedAt = Date.now();
|
||||
});
|
||||
|
||||
ChecklistItems.after.insert((userId, doc) => {
|
||||
itemCreation(userId, doc);
|
||||
});
|
||||
|
|
@ -281,7 +276,7 @@ if (Meteor.isServer) {
|
|||
code: 500,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
@ -308,13 +303,13 @@ if (Meteor.isServer) {
|
|||
if (req.body.hasOwnProperty('isFinished')) {
|
||||
ChecklistItems.direct.update(
|
||||
{ _id: paramItemId },
|
||||
{ $set: { isFinished: req.body.isFinished } }
|
||||
{ $set: { isFinished: req.body.isFinished } },
|
||||
);
|
||||
}
|
||||
if (req.body.hasOwnProperty('title')) {
|
||||
ChecklistItems.direct.update(
|
||||
{ _id: paramItemId },
|
||||
{ $set: { title: req.body.title } }
|
||||
{ $set: { title: req.body.title } },
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -324,7 +319,7 @@ if (Meteor.isServer) {
|
|||
_id: paramItemId,
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
@ -353,7 +348,7 @@ if (Meteor.isServer) {
|
|||
_id: paramItemId,
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue