From 292898708b51ff701960944b98b1d109ac520935 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 31 Jan 2023 11:24:09 +0100 Subject: [PATCH] result not null --- modules/item/back/methods/fixed-price/upsertFixedPrice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/item/back/methods/fixed-price/upsertFixedPrice.js b/modules/item/back/methods/fixed-price/upsertFixedPrice.js index c56c434ad..eb3eec1bd 100644 --- a/modules/item/back/methods/fixed-price/upsertFixedPrice.js +++ b/modules/item/back/methods/fixed-price/upsertFixedPrice.js @@ -78,7 +78,7 @@ module.exports = Self => { const [result] = await Self.rawSql(`SELECT vn.priceFixed_getRate2(?, ?) as rate2`, [args.id, args.rate3], myOptions); - if (beforeFixedPrice.rate3 != args.rate3 && result.rate2) + if (beforeFixedPrice.rate3 != args.rate3 && result && result.rate2) args.rate2 = result.rate2; }