mirror of
https://github.com/wekan/wekan.git
synced 2026-01-24 18:26:10 +01:00
Merge pull request #6093 from harryadel/createIndex-migration
Migrate createIndex to createIndexAsync
This commit is contained in:
commit
25eedd187e
32 changed files with 112 additions and 110 deletions
|
|
@ -2725,11 +2725,11 @@ const addCronJob = _.debounce(
|
|||
|
||||
if (Meteor.isServer) {
|
||||
// Let mongoDB ensure username unicity
|
||||
Meteor.startup(() => {
|
||||
allowedSortValues.forEach((value) => {
|
||||
Lists._collection.createIndex(value);
|
||||
});
|
||||
Users._collection.createIndex({
|
||||
Meteor.startup(async () => {
|
||||
for (const value of allowedSortValues) {
|
||||
await Lists._collection.createIndexAsync(value);
|
||||
}
|
||||
await Users._collection.createIndexAsync({
|
||||
modifiedAt: -1,
|
||||
});
|
||||
// Avatar URLs from CollectionFS to Meteor-Files, at users collection avatarUrl field:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue