mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Fixed _ensureIndex to createIndex for MongoDB 5. Updated to latest Meteor beta.
This commit is contained in:
parent
4bbe63365c
commit
c926475eb1
29 changed files with 68 additions and 63 deletions
|
|
@ -56,8 +56,8 @@ if (Meteor.isServer) {
|
|||
return userId === doc.userId && fieldNames.indexOf('userId') === -1;
|
||||
}
|
||||
Meteor.startup(() => {
|
||||
UnsavedEditCollection._collection._ensureIndex({ modifiedAt: -1 });
|
||||
UnsavedEditCollection._collection._ensureIndex({ userId: 1 });
|
||||
UnsavedEditCollection._collection.createIndex({ modifiedAt: -1 });
|
||||
UnsavedEditCollection._collection.createIndex({ userId: 1 });
|
||||
});
|
||||
UnsavedEditCollection.allow({
|
||||
insert: isAuthor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue