mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 01:28:33 +00:00
Error renaming
This commit is contained in:
@@ -80,18 +80,6 @@ export const projectDALFactory = (db: TDbClient) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const setProjectUpgradeStatus = async (projectId: string, status: ProjectUpgradeStatus | null, tx?: Knex) => {
|
|
||||||
try {
|
|
||||||
const data: TProjectsUpdate = {
|
|
||||||
upgradeStatus: status
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
await (tx || db)(TableName.Project).where({ id: projectId }).update(data);
|
|
||||||
} catch (error) {
|
|
||||||
throw new DatabaseError({ error, name: "Set project upgrade status" });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const findAllProjectsByIdentity = async (identityId: string) => {
|
const findAllProjectsByIdentity = async (identityId: string) => {
|
||||||
try {
|
try {
|
||||||
const workspaces = await db(TableName.IdentityProjectMembership)
|
const workspaces = await db(TableName.IdentityProjectMembership)
|
||||||
|
|||||||
Reference in New Issue
Block a user