diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-11-19 14:09:36 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-11-19 14:09:36 +0200 |
commit | 351d4767d7e93c90ac798769d6071da8730d834f (patch) | |
tree | 47b9e49342f17affce947c840566b9c03a630aab /server/migrations.js | |
parent | f595120e7203fdeee1a6c899adb948807e84b672 (diff) | |
download | wekan-351d4767d7e93c90ac798769d6071da8730d834f.tar.gz wekan-351d4767d7e93c90ac798769d6071da8730d834f.tar.bz2 wekan-351d4767d7e93c90ac798769d6071da8730d834f.zip |
When logged in, use database for setting, so that changes are
immediate. Only on public board use cookies.
Comment out Collapse CSS that is not in use.
Thanks to xet7 !
Diffstat (limited to 'server/migrations.js')
-rw-r--r-- | server/migrations.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/server/migrations.js b/server/migrations.js index a8b59c3e..92339110 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -794,24 +794,32 @@ Migrations.add('add-assignee', () => { ); }); -Migrations.add('remove-profile-showDesktopDragHandles', () => { +Migrations.add('add-profile-showDesktopDragHandles', () => { Users.update( - {}, { - $unset: { - 'profile.showDesktopDragHandles': 1, + 'profile.showDesktopDragHandles': { + $exists: false, + }, + }, + { + $set: { + 'profile.showDesktopDragHandles': false, }, }, noValidateMulti, ); }); -Migrations.add('remove-profile-hiddenMinicardLabelText', () => { +Migrations.add('add-profile-hiddenMinicardLabelText', () => { Users.update( - {}, { - $unset: { - 'profile.hiddenMinicardLabelText': 1, + 'profile.hiddenMinicardLabelText': { + $exists: false, + }, + }, + { + $set: { + 'profile.hiddenMinicardLabelText': false, }, }, noValidateMulti, |