Skip to content

Commit

Permalink
fix(pdf-service): log tenant Id context as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge committed Oct 27, 2023
1 parent 23570d3 commit e3cd36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/pdf-service/src/pdf/job/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function createGenerateJob({

logger.debug(`Generation of PDF (ID: ${jobId}) completed PDF creation from content with ${pdf.length} bytes...`, {
context,
tenant: tenantId,
tenant: tenantId?.toString(),
});

const result = await fileService.upload(tenantId, fileType, recordId, filename, pdf);
Expand All @@ -70,7 +70,7 @@ export function createGenerateJob({

logger.info(`Generated PDF (ID: ${jobId}) file ${filename} and uploaded to file service at: ${result.urn}`, {
context,
tenant: tenantId,
tenant: tenantId?.toString(),
});

await repository.update(jobId, 'completed', result);
Expand Down

0 comments on commit e3cd36e

Please sign in to comment.