mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
Fix type error
This commit is contained in:
@@ -188,13 +188,10 @@ export const certificateProfileDALFactory = (db: TDbClient) => {
|
|||||||
} as TCertificateProfileWithConfigs["certificateTemplate"])
|
} as TCertificateProfileWithConfigs["certificateTemplate"])
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const project =
|
const project = {
|
||||||
result.projectId && result.orgId
|
id: result.projectId,
|
||||||
? ({
|
orgId: result.orgId
|
||||||
id: result.projectId,
|
} as TCertificateProfileWithConfigs["project"];
|
||||||
orgId: result.orgId
|
|
||||||
} as TCertificateProfileWithConfigs["project"])
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
const transformedResult: TCertificateProfileWithConfigs = {
|
const transformedResult: TCertificateProfileWithConfigs = {
|
||||||
id: result.id,
|
id: result.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user