Prevented an invalid order during deletion

no issue

Will allow the demo data script to run if offers exist and have been redeemed
This commit is contained in:
Sam Lord 2023-05-02 15:02:41 +01:00
parent b60761706b
commit f7188b4dcf

View File

@ -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);