Skip to content

Commit cb827f2

Browse files
committed
fix request proof and tests
1 parent 21af103 commit cb827f2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lambdas/sftp-letters/src/__tests__/app/request-proof.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,12 @@ describe('App', () => {
279279

280280
expect(
281281
mocks.emailClient.sendProofRequestedEmailToSupplier
282-
).toHaveBeenCalledWith(expandedTemplateId, templateName, supplier);
282+
).toHaveBeenCalledWith(
283+
templateId,
284+
expandedTemplateId,
285+
templateName,
286+
supplier
287+
);
283288

284289
expect(mocks.templateRepository.finaliseLock).toHaveBeenCalledTimes(1);
285290
expect(mocks.templateRepository.finaliseLock).toHaveBeenCalledWith(

lambdas/sftp-letters/src/app/request-proof.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export class App {
126126

127127
// send email to supplier
128128
await this.emailClient.sendProofRequestedEmailToSupplier(
129+
templateId,
129130
expandedTemplateId,
130131
templateName,
131132
supplier

0 commit comments

Comments
 (0)