Skip to content

Commit

Permalink
fix(clientErrorAdminService): query ClientError for lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-xhio committed Apr 1, 2024
1 parent 7bda447 commit 2e024e3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ class ClientErrorAdminService extends BaseService {
Map lookups() {[
browser: distinctVals('browser'),
device: distinctVals('device'),
username: distinctVals('username')
username: distinctVals('username'),
appEnvironment: distinctVals('appEnvironment')
] }

//------------------------
// Implementation
//------------------------
private List distinctVals(String property) {
TrackLog.createCriteria().list {
ClientError.createCriteria().list {
projections { distinct(property) }
}.sort()
}
Expand Down

0 comments on commit 2e024e3

Please sign in to comment.