Explorar o código

Import missing card fields : isOvertime, startAt and spenTime

Ghassen Rjab %!s(int64=7) %!d(string=hai) anos
pai
achega
b475127c53
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      models/wekanCreator.js

+ 3 - 0
models/wekanCreator.js

@@ -228,7 +228,10 @@ export class WekanCreator {
         title: card.title,
         title: card.title,
         // we attribute the card to its creator if available
         // we attribute the card to its creator if available
         userId: this._user(this.createdBy.cards[card._id]),
         userId: this._user(this.createdBy.cards[card._id]),
+        isOvertime: card.isOvertime || false,
+        startAt: card.startAt ? this._now(card.startAt) : null,
         dueAt: card.dueAt ? this._now(card.dueAt) : null,
         dueAt: card.dueAt ? this._now(card.dueAt) : null,
+        spentTime: card.spentTime || null,
       };
       };
       // add labels
       // add labels
       if (card.labelIds) {
       if (card.labelIds) {