Skip to content

Commit a56cc68

Browse files
Copilothotlong
andauthored
Fix TS2353 orderBy format in history-cleanup.ts
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/9a0b7fca-28e4-41c5-9146-e6221be809ab Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 78b814c commit a56cc68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/metadata/src/utils/history-cleanup.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class HistoryCleanupManager {
132132
const historyRecords = await driver.find(historyTableName, {
133133
object: historyTableName,
134134
where: filter,
135-
orderBy: { version: 'desc' },
135+
orderBy: [{ field: 'version', order: 'desc' as const }],
136136
});
137137

138138
// If we have more records than the limit, delete the excess

0 commit comments

Comments
 (0)