Fix type error

This commit is contained in:
Fang-Pen Lin
2025-11-10 19:44:53 -08:00
parent 07cfb6dd54
commit 8fcdce19aa

View File

@@ -188,13 +188,10 @@ export const certificateProfileDALFactory = (db: TDbClient) => {
} as TCertificateProfileWithConfigs["certificateTemplate"])
: undefined;
const project =
result.projectId && result.orgId
? ({
id: result.projectId,
orgId: result.orgId
} as TCertificateProfileWithConfigs["project"])
: undefined;
const project = {
id: result.projectId,
orgId: result.orgId
} as TCertificateProfileWithConfigs["project"];
const transformedResult: TCertificateProfileWithConfigs = {
id: result.id,