Merge pull request 'ref #6246 check sales and update test' (!1763) from 6246-checkTicketSales into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
Reviewed-on: #1763 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
7876561188
|
@ -118,7 +118,7 @@ module.exports = Self => {
|
|||
|
||||
// Send notification to salesPerson
|
||||
const salesPersonUser = ticket.client().salesPersonUser();
|
||||
if (salesPersonUser) {
|
||||
if (salesPersonUser && sales.length) {
|
||||
const origin = ctx.req.headers.origin;
|
||||
const message = $t(`I have deleted the ticket id`, {
|
||||
id: id,
|
||||
|
|
|
@ -49,7 +49,7 @@ describe('ticket merge()', () => {
|
|||
|
||||
expect(deletedTicket.isDeleted).toEqual(true);
|
||||
expect(salesTicketFuture.length).toEqual(2);
|
||||
expect(chatNotificationBeforeMerge.length).toEqual(chatNotificationAfterMerge.length - 2);
|
||||
expect(chatNotificationBeforeMerge.length).toEqual(chatNotificationAfterMerge.length - 1);
|
||||
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue