0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed incorrect member id in status event

no refs

The member id assigned when creating a new status event on member creation was incorrectly using `data.id` instead of `member.id`, which was undefined causing a validation error.
This commit is contained in:
Rish 2021-02-16 11:14:45 +05:30 committed by Fabien O'Carroll
parent d93f7095f6
commit 65cf639603

View file

@ -98,7 +98,7 @@ module.exports = class MemberRepository {
}
await this._MemberStatusEvent.add({
member_id: data.id,
member_id: member.id,
from_status: null,
to_status: member.get('status')
}, options);