mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Remove duplicated logic
The duplicated logic was nessessary because the before.insert hook was not called before validation, when inserting was initiated on the server. Using autoValues fixed this problem.
This commit is contained in:
parent
18b1573b25
commit
b9883a8e24
1 changed files with 0 additions and 7 deletions
|
@ -404,13 +404,6 @@ if (Meteor.isServer) {
|
|||
title,
|
||||
boardId,
|
||||
userId: ExampleBoard.userId,
|
||||
|
||||
// XXX Not certain this is a bug, but we except these fields get
|
||||
// inserted by the Lists.before.insert collection-hook. Since this
|
||||
// hook is not called in this case, we have to dublicate the logic and
|
||||
// set them here.
|
||||
archived: false,
|
||||
createdAt: new Date(),
|
||||
};
|
||||
|
||||
Lists.insert(list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue