mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: add compare db logs
This commit is contained in:
parent
fa6390d770
commit
79e53a9844
1 changed files with 7 additions and 1 deletions
|
@ -200,7 +200,13 @@ const queryDatabaseData = async (database) => {
|
|||
'db_user_password'
|
||||
);
|
||||
|
||||
return [table_name, data.sort(buildSortByKeys(Object.keys(data[0] ?? {})))];
|
||||
const keyOrder = Object.keys(data[0] ?? {}).sort();
|
||||
const sortedData = data.sort(buildSortByKeys(keyOrder));
|
||||
if (table_name === 'applications') {
|
||||
console.log(sortedData);
|
||||
}
|
||||
|
||||
return [table_name, sortedData];
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue