summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-22 21:00:31 +0300
committerLauri Ojansivu <x@xet7.org>2020-04-22 21:00:31 +0300
commit9e95c06415e614e587d684ff9660cc53c5f8c8d3 (patch)
tree6ae4347dd76a814e58b86b3bd062ed68c7c3c4c0 /server
parente7603298d7a67c928bb20d26d57268b2c0b715d3 (diff)
downloadwekan-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.js8
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);
}
});
});