From 4c7a7027a93987d263621081154361a56b789be7 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Tue, 12 Apr 2022 11:17:39 +0100 Subject: [PATCH] Fixed storage of MRR Events type This was incorrectly attempting to store the `name` column which was renamed to `type` --- ghost/members-api/lib/repositories/member.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/members-api/lib/repositories/member.js b/ghost/members-api/lib/repositories/member.js index e408ecd0e2..0d4ab6095d 100644 --- a/ghost/members-api/lib/repositories/member.js +++ b/ghost/members-api/lib/repositories/member.js @@ -755,7 +755,7 @@ module.exports = class MemberRepository { await this._MemberPaidSubscriptionEvent.add({ member_id: member.id, source: 'stripe', - name: getEventName(originalStatus, updatedStatus), + type: getEventName(originalStatus, updatedStatus), subscription_id: updated.id, from_plan: model.get('plan_id'), to_plan: updated.get('status') === 'canceled' ? null : updated.get('plan_id'), @@ -769,7 +769,7 @@ module.exports = class MemberRepository { await this._MemberPaidSubscriptionEvent.add({ member_id: member.id, subscription_id: model.id, - name: 'created', + type: 'created', source: 'stripe', from_plan: null, to_plan: subscriptionPriceData.id,