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 /models/boards.js | |
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 'models/boards.js')
-rw-r--r-- | models/boards.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/boards.js b/models/boards.js index 170ebc5a..26dc6127 100644 --- a/models/boards.js +++ b/models/boards.js @@ -1297,7 +1297,10 @@ if (Meteor.isServer) { // Insert new board at last position in sort order. Boards.before.insert((userId, doc) => { - const lastBoard = Boards.findOne({ sort: { $exists: true } }, { sort: { sort: -1 } }); + const lastBoard = Boards.findOne( + { sort: { $exists: true } }, + { sort: { sort: -1 } }, + ); if (lastBoard && typeof lastBoard.sort !== 'undefined') { doc.sort = lastBoard.sort + 1; } |