Skip to content

Commit 197608a

Browse files
committed
logging
1 parent 2bbd698 commit 197608a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lambdas/backend-api/src/templates/api/validate-letter-template-files.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,15 @@ export class ValidateLetterTemplateFilesLambda {
153153
const pdf = new TemplatePdf({ id: templateId, owner }, pdfBuff);
154154
let csv;
155155

156-
const clientConfigurationResult = await this.clientConfigRepository.get(
157-
String(getTemplateResult.data.clientId)
156+
const clientConfigurationResult = getTemplateResult.data.clientId
157+
? await this.clientConfigRepository.get(getTemplateResult.data.clientId)
158+
: { data: null };
159+
160+
console.log(
161+
'getTemplateResult.data.clientId',
162+
getTemplateResult.data.clientId
158163
);
164+
console.log('clientConfigurationResult', clientConfigurationResult);
159165

160166
if (clientConfigurationResult.error) {
161167
log.error(

0 commit comments

Comments
 (0)