Skip to content

Commit 54d3e9e

Browse files
committed
#46 Reason breakdown link should work without entityUID
1 parent 7fcdef5 commit 54d3e9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: grails-app/controllers/au/org/ala/logger/LoggerController.groovy

+4-4
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class LoggerController {
118118
* @return breakdown of log events by reason in JSON format
119119
*/
120120
def getReasonBreakdown() {
121-
if (!params.eventId || !params.entityUid) {
122-
handleError(HttpStatus.BAD_REQUEST, "Request is missing entityUid and/or eventId")
121+
if (!params.eventId) {
122+
handleError(HttpStatus.BAD_REQUEST, "Request is missing eventId")
123123
} else {
124124
use(TimeCategory) {
125125
Date nextMonth = nextMonth()
@@ -371,8 +371,8 @@ class LoggerController {
371371
* @return breakdown of log events by reason in JSON format
372372
*/
373373
def getEmailBreakdown() {
374-
if (!params.eventId || !params.entityUid) {
375-
handleError(HttpStatus.BAD_REQUEST, "Request is missing entityUid and/or eventId")
374+
if (!params.eventId) {
375+
handleError(HttpStatus.BAD_REQUEST, "Request is missing eventId")
376376
} else {
377377
use(TimeCategory) {
378378
Date nextMonth = nextMonth()

0 commit comments

Comments
 (0)