mirror of
https://github.com/logto-io/logto.git
synced 2025-02-24 22:05:56 -05:00
feat(core): order logs by created_at desc (#993)
This commit is contained in:
parent
2dc50d6531
commit
2ae4e2eccf
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ export const findLogs = async (limit: number, offset: number, logCondition: LogC
|
||||||
select ${sql.join(Object.values(fields), sql`,`)}
|
select ${sql.join(Object.values(fields), sql`,`)}
|
||||||
from ${table}
|
from ${table}
|
||||||
${buildLogConditionSql(logCondition)}
|
${buildLogConditionSql(logCondition)}
|
||||||
|
order by ${fields.createdAt} desc
|
||||||
limit ${limit}
|
limit ${limit}
|
||||||
offset ${offset}
|
offset ${offset}
|
||||||
`);
|
`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue