Skip to content

Commit

Permalink
Fixed onAuditLog not working (#772)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
commonly-ts authored Nov 20, 2023
1 parent 94f6ce0 commit dc5611f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/groups/onAuditLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports.func = function (args) {
let empty = false
return shortPoll({
getLatest: function (latest) {
return getAuditLog({ group: args.group, jar: args.jar })
return getAuditLog({ group: args.group, jar: args.jar, sortOrder: 'Desc' })
.then(function (audit) {
const given = []
if (audit) {
Expand Down

0 comments on commit dc5611f

Please sign in to comment.