mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
Fix indent part 2.
Thanks to xet7 !
This commit is contained in:
parent
99f68f36b0
commit
96494bacf5
2 changed files with 16 additions and 16 deletions
|
@ -2169,7 +2169,7 @@ if (Meteor.isServer) {
|
|||
description: doc.description,
|
||||
listId: doc.listId,
|
||||
receivedAt: doc.receivedAt,
|
||||
startAt:doc.startAt,
|
||||
startAt: doc.startAt,
|
||||
dueAt: doc.dueAt,
|
||||
endAt: doc.endAt,
|
||||
assignees: doc.assignees,
|
||||
|
@ -2210,7 +2210,7 @@ if (Meteor.isServer) {
|
|||
title: doc.title,
|
||||
description: doc.description,
|
||||
receivedAt: doc.receivedAt,
|
||||
startAt:doc.startAt,
|
||||
startAt: doc.startAt,
|
||||
dueAt: doc.dueAt,
|
||||
endAt: doc.endAt,
|
||||
assignees: doc.assignees,
|
||||
|
|
|
@ -1109,10 +1109,10 @@ if (Meteor.isServer) {
|
|||
});
|
||||
*/
|
||||
|
||||
const Future = require('fibers/future');
|
||||
let future1 = new Future();
|
||||
let future2 = new Future();
|
||||
let future3 = new Future();
|
||||
const Future = require('fibers/future');
|
||||
let future1 = new Future();
|
||||
let future2 = new Future();
|
||||
let future3 = new Future();
|
||||
Boards.insert(
|
||||
{
|
||||
title: TAPi18n.__('templates'),
|
||||
|
@ -1140,7 +1140,7 @@ if (Meteor.isServer) {
|
|||
Users.update(fakeUserId.get(), {
|
||||
$set: { 'profile.cardTemplatesSwimlaneId': swimlaneId },
|
||||
});
|
||||
future1.return();
|
||||
future1.return();
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -1158,7 +1158,7 @@ if (Meteor.isServer) {
|
|||
Users.update(fakeUserId.get(), {
|
||||
$set: { 'profile.listTemplatesSwimlaneId': swimlaneId },
|
||||
});
|
||||
future2.return();
|
||||
future2.return();
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -1176,22 +1176,22 @@ if (Meteor.isServer) {
|
|||
Users.update(fakeUserId.get(), {
|
||||
$set: { 'profile.boardTemplatesSwimlaneId': swimlaneId },
|
||||
});
|
||||
future3.return();
|
||||
future3.return();
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
// HACK
|
||||
future1.wait();
|
||||
future2.wait();
|
||||
future3.wait();
|
||||
// HACK
|
||||
future1.wait();
|
||||
future2.wait();
|
||||
future3.wait();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Users.after.insert((userId, doc) => {
|
||||
// HACK
|
||||
doc = Users.findOne({_id: doc._id});
|
||||
Users.after.insert((userId, doc) => {
|
||||
// HACK
|
||||
doc = Users.findOne({ _id: doc._id });
|
||||
if (doc.createdThroughApi) {
|
||||
// The admin user should be able to create a user despite disabling registration because
|
||||
// it is two different things (registration and creation).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue