diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-22 21:00:31 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-04-22 21:00:31 +0300 |
commit | 9e95c06415e614e587d684ff9660cc53c5f8c8d3 (patch) | |
tree | 6ae4347dd76a814e58b86b3bd062ed68c7c3c4c0 /server | |
parent | e7603298d7a67c928bb20d26d57268b2c0b715d3 (diff) | |
download | wekan-9e95c06415e614e587d684ff9660cc53c5f8c8d3.tar.gz wekan-9e95c06415e614e587d684ff9660cc53c5f8c8d3.tar.bz2 wekan-9e95c06415e614e587d684ff9660cc53c5f8c8d3.zip |
Fix lint errors in lint error fix.
Thanks to xet7 !
Diffstat (limited to 'server')
-rw-r--r-- | server/migrations.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/migrations.js b/server/migrations.js index 21b54bda..a6c945fa 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -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); } }); }); |