update sort from createdAt to id

This commit is contained in:
Maidul Islam
2024-02-02 12:43:20 -05:00
parent b65677a708
commit 7a253ddcc7
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export const fnSecretsFromImports = async ({
type: SecretType.Shared
},
{
sort: [["createdAt", "desc"]]
sort: [["id", "asc"]]
}
);

View File

@@ -87,7 +87,7 @@ export const secretDALFactory = (db: TDbClient) => {
.select(db.ref("color").withSchema(TableName.SecretTag).as("tagColor"))
.select(db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"))
.select(db.ref("name").withSchema(TableName.SecretTag).as("tagName"))
.orderBy("createdAt", "desc");
.orderBy("id", "asc");
const data = sqlNestRelationships({
data: secs,
key: "id",