mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-08 05:56:38 +00:00
Also order by id
This commit is contained in:
@@ -124,7 +124,7 @@ export function queryAccess(data: Q) {
|
||||
eq(accessAuditLog.resourceId, resources.resourceId)
|
||||
)
|
||||
.where(getWhere(data))
|
||||
.orderBy(desc(accessAuditLog.timestamp));
|
||||
.orderBy(desc(accessAuditLog.timestamp), desc(accessAuditLog.id));
|
||||
}
|
||||
|
||||
export function countAccessQuery(data: Q) {
|
||||
|
||||
@@ -92,7 +92,7 @@ export function queryAction(data: Q) {
|
||||
})
|
||||
.from(actionAuditLog)
|
||||
.where(getWhere(data))
|
||||
.orderBy(desc(actionAuditLog.timestamp));
|
||||
.orderBy(desc(actionAuditLog.timestamp), desc(actionAuditLog.id));
|
||||
}
|
||||
|
||||
export function countActionQuery(data: Q) {
|
||||
|
||||
Reference in New Issue
Block a user