fixes #4632 Llamar al nuevo método back de guardar firmas de salix #1346

Merged
juan merged 15 commits from 4632-guardarFirmas-salix into dev 2023-03-16 09:53:51 +00:00
5 changed files with 4 additions and 4 deletions
Showing only changes of commit a99bd2577a - Show all commits

View File

@ -8,7 +8,7 @@ ALTER TABLE `vn`.`delivery` ADD CONSTRAINT delivery_ticketFk_FK FOREIGN KEY (`ti
DELETE FROM `salix`.`ACL` WHERE `property` = 'saveSign';
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalId`)
VALUES
('TicketDms','saveSign','WRITE','ALLOW','employee');
('Ticket','saveSign','WRITE','ALLOW','employee');
DROP PROCEDURE IF EXISTS vn.route_getTickets;

View File

@ -1,6 +1,6 @@
const models = require('vn-loopback/server/server').models;
describe('TicketDms saveSign()', () => {
describe('Ticket saveSign()', () => {
const FormData = require('form-data');
const data = new FormData();
let ctx = {req: {
@ -19,7 +19,7 @@ describe('TicketDms saveSign()', () => {
const options = {transaction: tx};
ctx.args = {tickets: [ticketWithOkState]};
await models.TicketDms.saveSign(ctx, options);
await models.Ticket.saveSign(ctx, options);
await tx.rollback();
} catch (e) {

View File

@ -2,7 +2,6 @@ const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
require('../methods/ticket-dms/removeFile')(Self);
require('../methods/ticket-dms/saveSign')(Self);
Self.rewriteDbError(function(err) {
if (err.code === 'ER_DUP_ENTRY')

View File

@ -39,4 +39,5 @@ module.exports = function(Self) {
require('../methods/ticket/isRoleAdvanced')(Self);
require('../methods/ticket/collectionLabel')(Self);
require('../methods/ticket/expeditionPalletLabel')(Self);
require('../methods/ticket/saveSign')(Self);
};