Fix type error

This commit is contained in:
Fang-Pen Lin
2025-11-12 10:47:54 -08:00
parent 07cfb6dd54
commit 8fcdce19aa
@@ -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, id: result.projectId,
orgId: result.orgId orgId: result.orgId
} as TCertificateProfileWithConfigs["project"]) } as TCertificateProfileWithConfigs["project"];
: undefined;
const transformedResult: TCertificateProfileWithConfigs = { const transformedResult: TCertificateProfileWithConfigs = {
id: result.id, id: result.id,