result not null
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-01-31 11:24:09 +01:00
parent 320ceb3e2c
commit 292898708b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}