Merge branch 'master' into lib-change

This commit is contained in:
Romulus Tsai 蔡仲明 2020-05-08 10:13:11 +08:00
commit c3458855bd
425 changed files with 15176 additions and 28903 deletions

View file

@ -1034,10 +1034,13 @@ Migrations.add('add-description-text-allowed', () => {
);
});
Migrations.add('fix-incorrect-dates', () => {
cas = CFSAttachments.find();
console.log('cas', cas);
});
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);
}
});
});
import { MongoInternals } from 'meteor/mongo';