refs #5652 feat:itemTrash_new

This commit is contained in:
Sergio De la torre 2023-09-06 09:35:43 +02:00
parent 9d367b8299
commit dd1f759e20
2 changed files with 8 additions and 3 deletions

View File

@ -10,4 +10,9 @@ UPDATE vn.address
isActive = 0
WHERE id IN (6,47);
INSERT INTO `salix`.`ACL` (id, model, property, accessType, permission, principalType, principalId) VALUES(698, 'Item', 'setVisibleDiscard', 'WRITE', 'ALLOW', 'ROLE', 'employee');
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
VALUES('Item', 'setVisibleDiscard', 'WRITE', 'ALLOW', 'ROLE', 'employee');
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
VALUES('Address', 'getAddress', 'READ', 'ALLOW', 'ROLE', 'employee');

View File

@ -1,8 +1,8 @@
const {models} = require('vn-loopback/server/server');
describe('getAddressa()', () => {
describe('getAddress()', () => {
fit('return list of address last year', async() => {
let response = await models.Addressa.getAddress();
let response = await models.Address.getAddress();
expect(response.length).toBeGreaterThan(0);
expect(response[0].addressFk).toEqual(1);