update sort from createdAt to id

This commit is contained in:
Maidul Islam
2024-02-02 12:43:43 -05:00
parent b65677a708
commit 7a253ddcc7
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@ export const fnSecretsFromImports = async ({
type: SecretType.Shared type: SecretType.Shared
}, },
{ {
sort: [["createdAt", "desc"]] sort: [["id", "asc"]]
} }
); );
+1 -1
View File
@@ -87,7 +87,7 @@ export const secretDALFactory = (db: TDbClient) => {
.select(db.ref("color").withSchema(TableName.SecretTag).as("tagColor")) .select(db.ref("color").withSchema(TableName.SecretTag).as("tagColor"))
.select(db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug")) .select(db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"))
.select(db.ref("name").withSchema(TableName.SecretTag).as("tagName")) .select(db.ref("name").withSchema(TableName.SecretTag).as("tagName"))
.orderBy("createdAt", "desc"); .orderBy("id", "asc");
const data = sqlNestRelationships({ const data = sqlNestRelationships({
data: secs, data: secs,
key: "id", key: "id",