mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -37,7 +37,7 @@ AccountSettings.attachSchema(
|
|||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
AccountSettings.allow({
|
||||
|
|
@ -47,11 +47,6 @@ AccountSettings.allow({
|
|||
},
|
||||
});
|
||||
|
||||
AccountSettings.before.update((userId, doc, fieldNames, modifier, options) => {
|
||||
modifier.$set = modifier.$set || {};
|
||||
modifier.$set.modifiedAt = Date.now();
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
AccountSettings._collection._ensureIndex({ modifiedAt: -1 });
|
||||
|
|
@ -62,7 +57,7 @@ if (Meteor.isServer) {
|
|||
booleanValue: false,
|
||||
sort: 0,
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
AccountSettings.upsert(
|
||||
{ _id: 'accounts-allowUserNameChange' },
|
||||
|
|
@ -71,7 +66,7 @@ if (Meteor.isServer) {
|
|||
booleanValue: false,
|
||||
sort: 1,
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue