Don't throw error if no salesPerson is assigned
This commit is contained in:
parent
54bc1bc281
commit
2f089681df
|
@ -108,8 +108,10 @@ module.exports = Self => {
|
|||
|
||||
await Promise.all(promises);
|
||||
|
||||
query = `call vn.manaSpellersRequery(?)`;
|
||||
if (salesPersonId) {
|
||||
const query = `call vn.manaSpellersRequery(?)`;
|
||||
await Self.rawSql(query, [salesPersonId], options);
|
||||
}
|
||||
|
||||
await tx.commit();
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue