7322-addSelectAddressOnTicketTransfer #3363

Merged
jtubau merged 6 commits from 7322-addSelectAddressOnTicketTransfer into dev 2025-01-27 07:31:52 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 29af7cfcbc - Show all commits

View File

@ -92,6 +92,7 @@ describe('Ticket transferClient()', () => {
const addressFk = 1;
try {
await models.Ticket.transferClient(ctx, originalTicketId, clientId, addressFk, options);
fail('Expected an error to be thrown, but none was thrown.');
} catch (e) {
expect(e.message).toEqual('The address does not belong to the client');
}

View File

@ -1,3 +1,4 @@
const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.remoteMethodCtx('transferClient', {
description: 'Transferring ticket to another client',