231801_test_to_master #1519
|
@ -37,7 +37,7 @@ describe('Item editFixedPrice()', () => {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const filter = {'it.categoryFk': 1};
|
const filter = {where: {'it.categoryFk': 1}};
|
||||||
const ctx = {
|
const ctx = {
|
||||||
args: {
|
args: {
|
||||||
filter: filter
|
filter: filter
|
||||||
|
@ -48,7 +48,7 @@ describe('Item editFixedPrice()', () => {
|
||||||
const field = 'rate2';
|
const field = 'rate2';
|
||||||
const newValue = 88;
|
const newValue = 88;
|
||||||
|
|
||||||
await models.FixedPrice.editFixedPrice(ctx, field, newValue, null, filter, options);
|
await models.FixedPrice.editFixedPrice(ctx, field, newValue, null, filter.where, options);
|
||||||
|
|
||||||
const [result] = await models.FixedPrice.filter(ctx, filter, options);
|
const [result] = await models.FixedPrice.filter(ctx, filter, options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue