mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed invite resend
refs 3d7e593c96
- `record.belongsTo().id` is an older Ember Data concept so it was returning `undefined`
- the `role` relationship is set up as `async: false` and is always output as an embedded record by our API so we're safe to use `this.role.id` without dealing with any async lookup
This commit is contained in:
parent
3d7e593c96
commit
c46d04f612
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default Model.extend({
|
|||
resend() {
|
||||
let inviteData = {
|
||||
email: this.email,
|
||||
role_id: this.belongsTo('role').id
|
||||
role_id: this.role.id
|
||||
};
|
||||
|
||||
let inviteUrl = this.get('ghostPaths.url').api('invites');
|
||||
|
|
Loading…
Add table
Reference in a new issue