diff --git a/core/src/main/groovy/com/jdbernard/wdiwtlt/db/ORM.groovy b/core/src/main/groovy/com/jdbernard/wdiwtlt/db/ORM.groovy index 319ba1f..a952131 100644 --- a/core/src/main/groovy/com/jdbernard/wdiwtlt/db/ORM.groovy +++ b/core/src/main/groovy/com/jdbernard/wdiwtlt/db/ORM.groovy @@ -825,9 +825,9 @@ public class ORM { public def untagMediaFiles(List mediaFileIds, List tagNames) { - withTranscation { - List tags = tagNames.collect(getTagByName).findAll() - def tagPlaceholders = tags.collect { '?' }.join(', ') + withTransaction { + List tags = tagNames.collect(this.&getTagByName).findAll() + def tagPlaceHolders = tags.collect { '?' }.join(', ') def tagIds = tags.collect { it.id } String deleteQuery = """