mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
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:
parent
d064a1ea82
commit
5a74c614c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user