From f7188b4dcfe9ba955278e4ceee9f35f2c3954e9b Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Tue, 2 May 2023 15:02:41 +0100 Subject: [PATCH] Prevented an invalid order during deletion no issue Will allow the demo data script to run if offers exist and have been redeemed --- ghost/data-generator/lib/data-generator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/data-generator/lib/data-generator.js b/ghost/data-generator/lib/data-generator.js index 738805cd2b..83f1d0df9a 100644 --- a/ghost/data-generator/lib/data-generator.js +++ b/ghost/data-generator/lib/data-generator.js @@ -23,15 +23,15 @@ const { MembersLoginEventsImporter, MembersStatusEventsImporter, MembersSubscribeEventsImporter, - MembersSubscriptionCreatedEventsImporter, MembersStripeCustomersImporter, - MembersStripeCustomersSubscriptionsImporter, MembersPaidSubscriptionEventsImporter, EmailBatchesImporter, EmailRecipientsImporter, RedirectsImporter, MembersClickEventsImporter, OffersImporter, + MembersStripeCustomersSubscriptionsImporter, + MembersSubscriptionCreatedEventsImporter, LabelsImporter, MembersLabelsImporter, RolesUsersImporter, @@ -314,7 +314,7 @@ class DataGenerator { amount: 3 }); - const membersCreatedEventsImporter = new MembersCreatedEventsImporter(transaction, {baseUrl: this.baseUrl, posts}); + const membersCreatedEventsImporter = new MembersCreatedEventsImporter(transaction, {posts}); await membersCreatedEventsImporter.importForEach(members, {amount: 1}); const membersLoginEventsImporter = new MembersLoginEventsImporter(transaction);