Skip to content

Commit

Permalink
Fix for #321
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj committed Nov 26, 2024
1 parent f233db3 commit 409e2fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ class SpeciesListController {
if(sl){
helperService.deleteDataResourceForList(sl.dataResourceUid)
List msIds = SpeciesListItem.executeQuery("select sli.matchedSpecies.id as id from SpeciesListItem as sli where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
MatchedSpecies.executeUpdate("delete from MatchedSpecies where id in (:msIds)", ["msIds": msIds])
log.debug("Deleted matched species (${msIds.size()}) ")
SpeciesListItem.executeUpdate("delete from SpeciesListItem where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
log.debug("Deleted species in list: ${sl.dataResourceUid}")
MatchedSpecies.executeUpdate("delete from MatchedSpecies where id in (:msIds)", ["msIds": msIds])
log.debug("Deleted matched species (${msIds.size()}) ")
SpeciesListKVP.executeUpdate("delete from SpeciesListKVP where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
log.debug("Deleted KV pairs in list: ${sl.dataResourceUid}")
SpeciesList.executeUpdate("delete from SpeciesList where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
Expand Down

0 comments on commit 409e2fc

Please sign in to comment.