Fix lint errors in lint error fix.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-04-22 21:00:31 +03:00
parent e7603298d7
commit 9e95c06415
9 changed files with 47 additions and 49 deletions

View file

@ -1036,12 +1036,8 @@ Migrations.add('add-description-text-allowed', () => {
Migrations.add('add-sort-field-to-boards', () => {
Boards.find().forEach((board, index) => {
if (!board.hasOwnProperty('sort')) {
Boards.direct.update(
board._id,
{ $set: { sort: index } },
noValidate
);
if (!board.hasOwnProperty('sort')) {
Boards.direct.update(board._id, { $set: { sort: index } }, noValidate);
}
});
});