Skip to content

Commit dc5611f

Browse files
authored
Fixed onAuditLog not working (#772)
* Fix onAuditLog fetching oldest audit logs Added sortOrder argument to return the newest audit logs rather than only fetching the oldest ones, resulting in nothing coming through when using onAuditLog. * Changed double quotes to single
1 parent 94f6ce0 commit dc5611f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/groups/onAuditLog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports.func = function (args) {
3030
let empty = false
3131
return shortPoll({
3232
getLatest: function (latest) {
33-
return getAuditLog({ group: args.group, jar: args.jar })
33+
return getAuditLog({ group: args.group, jar: args.jar, sortOrder: 'Desc' })
3434
.then(function (audit) {
3535
const given = []
3636
if (audit) {

0 commit comments

Comments
 (0)