mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 21:27:31 +00:00
update sort from createdAt to id
This commit is contained in:
@@ -31,7 +31,7 @@ export const fnSecretsFromImports = async ({
|
|||||||
type: SecretType.Shared
|
type: SecretType.Shared
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sort: [["createdAt", "desc"]]
|
sort: [["id", "asc"]]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user