From 1fe7d58c8cd6115bdb1b5757387b359da2410143 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Tue, 26 Nov 2024 13:25:56 +0200 Subject: [PATCH] chore: doc comments --- .../server/src/api/controllers/Sales/PaymentReceives.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/Sales/PaymentReceives.ts b/packages/server/src/api/controllers/Sales/PaymentReceives.ts index 9e128411a..f61768629 100644 --- a/packages/server/src/api/controllers/Sales/PaymentReceives.ts +++ b/packages/server/src/api/controllers/Sales/PaymentReceives.ts @@ -481,7 +481,7 @@ export default class PaymentReceivesController extends BaseController { ACCEPT_TYPE.APPLICATION_PDF, ACCEPT_TYPE.APPLICATION_TEXT_HTML, ]); - // Responses pdf format. + // Responds pdf format. if (ACCEPT_TYPE.APPLICATION_PDF === acceptType) { const [pdfContent, filename] = await this.paymentReceiveApplication.getPaymentReceivePdf( @@ -494,7 +494,7 @@ export default class PaymentReceivesController extends BaseController { 'Content-Disposition': `attachment; filename="${filename}"`, }); res.send(pdfContent); - // Responses html format. + // Responds html format. } else if (ACCEPT_TYPE.APPLICATION_TEXT_HTML === acceptType) { const htmlContent = await this.paymentReceiveApplication.getPaymentReceivedHtml( @@ -502,7 +502,7 @@ export default class PaymentReceivesController extends BaseController { paymentReceiveId ); return res.status(200).send({ htmlContent }); - // Responses json format. + // Responds json format. } else { const paymentReceive = await this.paymentReceiveApplication.getPaymentReceive(