0
Fork 0
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:
IceHe.xyz 2022-05-30 17:40:03 +08:00 committed by GitHub
parent 2dc50d6531
commit 2ae4e2eccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,7 @@ export const findLogs = async (limit: number, offset: number, logCondition: LogC
select ${sql.join(Object.values(fields), sql`,`)}
from ${table}
${buildLogConditionSql(logCondition)}
order by ${fields.createdAt} desc
limit ${limit}
offset ${offset}
`);