fix(scheduler): change the discount code to an absolute discount

This commit is contained in:
Karol Sójko 2022-07-26 12:35:07 +02:00
parent 44172e1a8e
commit 1fa94efa02
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
2 changed files with 4 additions and 4 deletions

View file

@ -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()
})

View file

@ -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',
}),
)
}