3328-item_search-panel #779

Merged
carlosjr merged 16 commits from 3328-item_search-panel into dev 2021-11-18 10:47:38 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 6fa60e597a - Show all commits

View File

@ -38,7 +38,6 @@ module.exports = Self => {
null, myOptions); null, myOptions);
stmt.merge(conn.makeSuffix(filter)); stmt.merge(conn.makeSuffix(filter));
console.log(stmt);
return conn.executeStmt(stmt); return conn.executeStmt(stmt);
}; };

View File

@ -1,13 +1,13 @@
const models = require('vn-loopback/server/server').models; const models = require('vn-loopback/server/server').models;
describe('Worker activeWithBuyer', () => { describe('Worker activeBuyers', () => {
it('should return the buyers in itemType as result', async() => { it('should return the buyers in itemType as result', async() => {
const tx = await models.Item.beginTransaction({}); const tx = await models.Item.beginTransaction({});
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const filter = {}; const filter = {};
const result = await models.Item.activeWithBuyer(filter, options); const result = await models.Item.activeBuyers(filter, options);
const firstWorker = result[0]; const firstWorker = result[0];
const secondWorker = result[1]; const secondWorker = result[1];