From 47ed0f9397cfd7dccb732c3579eedb8624e47e6a Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Mon, 4 Nov 2024 12:31:29 +0530 Subject: [PATCH] chore: fixed floating promise warning when linting --- models/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/helpers.ts b/models/helpers.ts index bd6bdef8..6e1b9441 100644 --- a/models/helpers.ts +++ b/models/helpers.ts @@ -1201,7 +1201,7 @@ export async function updatePricingRule(sinvDoc: SalesInvoice) { ).length; setTimeout(() => { - (async () => { + void (async () => { if (appliedPricingRuleCount !== applicablePricingRuleNames?.length) { await sinvDoc.appendPricingRuleDetail(applicablePricingRuleNames); await sinvDoc.applyProductDiscount();