Skip to content

Commit

Permalink
#456 Can now define multiple instances of DeleteCollectionsTask
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Apr 22, 2019
1 parent cc6aa86 commit 68ce160
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ class DeleteCollectionsTask extends DataMovementTask {

@TaskAction
void deleteCollections() {
if (collections != null && collections.length > 0) {
getProject().getExtensions().add("collections", collections.join(","))
}
project.ext.collections = (collections != null && collections.length > 0) ? collections.join(",") : null
runQueryBatcherJob(new DeleteCollectionsJob())
}
}

0 comments on commit 68ce160

Please sign in to comment.