summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-08-29 02:03:53 +0300
committerLauri Ojansivu <x@xet7.org>2017-08-29 02:03:53 +0300
commit31c7ada59106e697665027ae5a6248200070d9c5 (patch)
tree5e8dc184d98a0b8c48f0f044a2b2157f271924ce /models
parent06644d9c714db046def9325612b64ab77a850c38 (diff)
parentb4ec609fe06aba6ad634020fa10f979ca74e0da0 (diff)
downloadwekan-31c7ada59106e697665027ae5a6248200070d9c5.tar.gz
wekan-31c7ada59106e697665027ae5a6248200070d9c5.tar.bz2
wekan-31c7ada59106e697665027ae5a6248200070d9c5.zip
Merge branch 'GhassenRjab-hotfix/sandstorm-export-import' into devel
Fix Wekan Import Export on Standalone and Sandstorm. Thanks to GhassenRjab and xet7 ! Related #799
Diffstat (limited to 'models')
-rw-r--r--models/wekanCreator.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index b5f9b0ff..36e5e1ca 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -71,7 +71,6 @@ export class WekanCreator {
checkActivities(wekanActivities) {
check(wekanActivities, [Match.ObjectIncluding({
- userId: String,
activityType: String,
createdAt: DateString,
})]);
@@ -141,6 +140,8 @@ export class WekanCreator {
isActive: true,
isCommentOnly: false,
}],
+ // Standalone Export has modifiedAt missing, adding modifiedAt to fix it
+ modifiedAt: this._now(wekanBoard.modifiedAt),
permission: wekanBoard.permission,
slug: getSlug(wekanBoard.title) || 'board',
stars: 0,