Updated event storage to use sharedOptions

no-issue

This makes sure that DB operations can be performed in the same
transaction
This commit is contained in:
Fabien O'Carroll 2021-06-10 17:57:06 +01:00 committed by Fabien 'egg' O'Carroll
parent d064a1ea82
commit 5a74c614c5

View File

@ -180,7 +180,7 @@ module.exports = class MemberRepository {
member_id: member.id,
subscribed: member.get('subscribed'),
source
}, options);
}, sharedOptions);
}
if (member.attributes.email !== member._previousAttributes.email) {
@ -188,7 +188,7 @@ module.exports = class MemberRepository {
member_id: member.id,
from_email: member._previousAttributes.email,
to_email: member.get('email')
});
}, sharedOptions);
}
if (this._stripeAPIService.configured && member._changed.email) {