Skip to content

Commit

Permalink
Non-string ids for Algolia records deletion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brainoutsource committed Aug 30, 2017
1 parent ca69481 commit d3ea98d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class AlgoliaObjectsDeleteTask(schema: StructType, serializedSettings: String) :
if (idField == null) {
throw IllegalStateException("Delete statement must have `idField` defined")
}
targetIndex.deleteObjects(objects.map { it[idField] as? String }.filterNotNull())
targetIndex.deleteObjects(objects.map { it[idField]?.toString() }.filterNotNull())
}

}
Expand Down

0 comments on commit d3ea98d

Please sign in to comment.