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:
parent
d93f7095f6
commit
65cf639603
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue