summaryrefslogtreecommitdiffstats
path: root/models/boards.js
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 /models/boards.js
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 'models/boards.js')
-rw-r--r--models/boards.js5
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;
}