This commit is contained in:
parent
28a12d0706
commit
e97b5a9f80
|
@ -42,7 +42,7 @@ describe('upsertFixedPrice()', () => {
|
|||
|
||||
delete ctx.args.started;
|
||||
delete ctx.args.ended;
|
||||
ctx.args.hasMinPrice = true;
|
||||
ctx.args.hasMinPrice = false;
|
||||
|
||||
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
||||
|
||||
|
@ -74,7 +74,7 @@ describe('upsertFixedPrice()', () => {
|
|||
|
||||
delete ctx.args.started;
|
||||
delete ctx.args.ended;
|
||||
ctx.args.hasMinPrice = false;
|
||||
ctx.args.hasMinPrice = true;
|
||||
|
||||
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
||||
|
||||
|
@ -105,7 +105,7 @@ describe('upsertFixedPrice()', () => {
|
|||
rate2: rate2,
|
||||
rate3: firstRate3,
|
||||
minPrice: 0,
|
||||
hasMinPrice: false
|
||||
hasMinPrice: true
|
||||
}};
|
||||
|
||||
// create new fixed price
|
||||
|
|
|
@ -87,7 +87,7 @@ module.exports = Self => {
|
|||
|
||||
await targetItem.updateAttributes({
|
||||
minPrice: args.minPrice,
|
||||
hasMinPrice: args.hasMinPrice ? args.hasMinPrice : false
|
||||
hasMinPrice: args.hasMinPrice
|
||||
}, myOptions);
|
||||
|
||||
const itemFields = [
|
||||
|
|
Loading…
Reference in New Issue