mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed Segment event named wrong
This commit is contained in:
parent
ce2df20b53
commit
eb303ec221
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ module.exports = class DomainEventsAnalytics {
|
|||
if (event.data.milestone
|
||||
&& event.data.milestone.value === 100
|
||||
) {
|
||||
const eventName = event.data.milestone.type === 'arr' ? '$100 MRR reached' : '100 Members reached';
|
||||
const eventName = event.data.milestone.type === 'arr' ? '$100 ARR reached' : '100 Members reached';
|
||||
|
||||
try {
|
||||
this.#analytics.track(Object.assign(this.#trackDefaults, {}, {event: this.#prefix + eventName}));
|
||||
|
|
|
@ -153,7 +153,7 @@ describe('DomainEventsAnalytics', function () {
|
|||
assert(analyticsStub.calledWith({
|
||||
userId: '9876',
|
||||
properties: {email: 'john+arr@test.com'},
|
||||
event: 'Pro: $100 MRR reached'
|
||||
event: 'Pro: $100 ARR reached'
|
||||
}));
|
||||
assert(loggingStub.callCount === 0);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue