Merge branch 'viewProfile' of https://github.com/andresmanelli/wekan into andresmanelli-viewProfile

This commit is contained in:
Lauri Ojansivu 2018-04-16 21:35:07 +03:00
commit 02e8749540
8 changed files with 44 additions and 38 deletions

View file

@ -208,3 +208,14 @@ Migrations.add('add-checklist-items', () => {
);
});
});
Migrations.add('add-profile-view', () => {
Users.find().forEach((user) => {
// Set default view
Users.direct.update(
{ _id: user._id },
{ $set: { 'profile.boardView': 'board-view-lists' } },
noValidate
);
});
});