Skip to content

Commit

Permalink
Merge pull request #97 from treasure-data/fix_actTypeIds_required
Browse files Browse the repository at this point in the history
Hotfix issue actTypeIds is required
  • Loading branch information
xuantuan58 committed Dec 3, 2019
2 parents 40560d7 + 806bf21 commit e5a5f08
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public interface PluginTask extends MarketoBaseBulkExtractInputPlugin.PluginTask
@ConfigDefault("[]")
List<String> getActivityTypeIds();

@Config("act_type_ids")
@ConfigDefault("[]")
List<Integer> getActTypeIds();

Expand All @@ -63,11 +64,9 @@ public void validateInputTask(PluginTask task)
// ignorable if unable to get activity type ids. If thing gone wrong, the bulk extract will throw errors
}

// task will use getActTypeIds instead of getActivityTypeIds method
task.setActTypeIds(activityIds);
}
else {
task.setActTypeIds(new ArrayList<Integer>());
}
super.validateInputTask(task);
}

Expand Down

0 comments on commit e5a5f08

Please sign in to comment.