summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:42:05 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:42:05 +0100
commit35ffd0281413aa4071ddef2072ec75c8f2d96025 (patch)
tree5df81800ee7c24205203a461e8cd02f8bea8bc73 /models
parent907c761f71e8764574ac9c4f8ab1b892082a03b4 (diff)
downloadwekan-35ffd0281413aa4071ddef2072ec75c8f2d96025.tar.gz
wekan-35ffd0281413aa4071ddef2072ec75c8f2d96025.tar.bz2
wekan-35ffd0281413aa4071ddef2072ec75c8f2d96025.zip
Fix import error 500
while running an import from a previously exported board, we encounter the following error: Exception while invoking method 'importBoard' Error: Did not check() all arguments during call to 'importBoard' at ArgumentChecker.throwUnlessAllArgumentsHaveBeenChecked (packages/check.js:483:13) at Object._failIfArgumentsAreNotAllChecked (packages/check.js:131:16) at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1765:18) at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15) at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15) at Promise (packages/ddp-server/livedata_server.js:715:46) at new Promise (<anonymous>) at Session.method (packages/ddp-server/livedata_server.js:689:23) at packages/mdg_meteor-apm-agent.js:2617:38 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15) at Session.sessionProto.protocol_handlers.method (packages/mdg_meteor-apm-agent.js:2616:44) at packages/ddp-server/livedata_server.js:559:43 Commit 4cf98134491b587 removed the checks as the original board might not have all the required fields, but we actually still need to run a general check on all parameters
Diffstat (limited to 'models')
-rw-r--r--models/import.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/import.js b/models/import.js
index 5cdf8dc1..343e1c24 100644
--- a/models/import.js
+++ b/models/import.js
@@ -3,10 +3,10 @@ import { WekanCreator } from './wekanCreator';
Meteor.methods({
importBoard(board, data, importSource, currentBoard) {
- //check(board, Object);
- //check(data, Object);
- //check(importSource, String);
- //check(currentBoard, Match.Maybe(String));
+ check(board, Object);
+ check(data, Object);
+ check(importSource, String);
+ check(currentBoard, Match.Maybe(String));
let creator;
switch (importSource) {
case 'trello':