Browse Source

Fix createCardWithDueDate Error: User id is required.

Thanks to xet7!

Fixes #5114,
fixes #5111
Lauri Ojansivu 1 year ago
parent
commit
7d1ab0a388
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/cards.js

+ 1 - 0
models/cards.js

@@ -2932,6 +2932,7 @@ Meteor.methods({
       createdAt: new Date(),
       dueAt: dueDate,
       sort: 0,
+      usedId: Meteor.userId(),
     };
     const cardId = Cards.insert(card);
     return cardId;