fix(scheduler): change the discount code to an absolute discount
This commit is contained in:
parent
44172e1a8e
commit
1fa94efa02
2 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ describe('JobDoneInterpreter', () => {
|
|||
|
||||
expect(domainEventFactory.createDiscountApplyRequestedEvent).toHaveBeenCalledWith({
|
||||
userEmail: 'test@standardnotes.com',
|
||||
discountCode: 'econ-10',
|
||||
discountCode: 'limited-10',
|
||||
})
|
||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
||||
})
|
||||
|
@ -247,7 +247,7 @@ describe('JobDoneInterpreter', () => {
|
|||
|
||||
expect(domainEventFactory.createDiscountWithdrawRequestedEvent).toHaveBeenCalledWith({
|
||||
userEmail: 'test@standardnotes.com',
|
||||
discountCode: 'econ-10',
|
||||
discountCode: 'limited-10',
|
||||
})
|
||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
||||
})
|
||||
|
|
|
@ -116,7 +116,7 @@ export class JobDoneInterpreter implements JobDoneInterpreterInterface {
|
|||
await this.domainEventPublisher.publish(
|
||||
this.domainEventFactory.createDiscountApplyRequestedEvent({
|
||||
userEmail: job.userIdentifier,
|
||||
discountCode: 'econ-10',
|
||||
discountCode: 'limited-10',
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ export class JobDoneInterpreter implements JobDoneInterpreterInterface {
|
|||
await this.domainEventPublisher.publish(
|
||||
this.domainEventFactory.createDiscountWithdrawRequestedEvent({
|
||||
userEmail: job.userIdentifier,
|
||||
discountCode: 'econ-10',
|
||||
discountCode: 'limited-10',
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue