From 7f41f8c4e13ffaa2933605001844462312d8f2e5 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 16 Mar 2016 02:30:07 -0500 Subject: [PATCH] Fixed broken ORM.untagMediaFiles. --- core/src/main/groovy/com/jdbernard/wdiwtlt/db/ORM.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = """