File tree 1 file changed +2
-1
lines changed
grails-app/services/au/org/ala/alerts
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ package au.org.ala.alerts;
16
16
17
17
import com.jayway.jsonpath.JsonPath
18
18
import grails.converters.JSON
19
+ import grails.gorm.transactions.Transactional
19
20
import org.apache.commons.lang.time.DateUtils
20
21
import org.apache.http.entity.ContentType
21
22
import java.text.SimpleDateFormat
@@ -62,6 +63,7 @@ class BiosecurityService {
62
63
* @param query
63
64
* @param since The local date to check the subscription since
64
65
*/
66
+ @Transactional
65
67
def triggerBiosecuritySubscription (Query query , Date since ) {
66
68
SimpleDateFormat sdf = new SimpleDateFormat (" yyyy-MM-dd'T'HH:mm:ss'Z'" )
67
69
Date now = new Date ()
@@ -149,7 +151,6 @@ class BiosecurityService {
149
151
}
150
152
}
151
153
152
-
153
154
def processQueryBiosecurity (Query query , Date since , Date to ) {
154
155
def drId = query. listId
155
156
if (drId) {
You can’t perform that action at this time.
0 commit comments