File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ export default class CrateOwnerInviteAdapter extends ApplicationAdapter {
6
6
pathForType ( ) {
7
7
return 'crate_owner_invitations' ;
8
8
}
9
+
10
+ urlForQuery ( ) {
11
+ return '/api/private/crate_owner_invitations' ;
12
+ }
9
13
}
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ import { inject as service } from '@ember/service';
3
3
import AuthenticatedRoute from '../-authenticated-route' ;
4
4
5
5
export default class PendingInvitesRoute extends AuthenticatedRoute {
6
+ @service session ;
6
7
@service store ;
7
8
8
9
model ( ) {
9
- return this . store . findAll ( 'crate-owner-invite' ) ;
10
+ let user = this . session . currentUser ;
11
+ return this . store . query ( 'crate-owner-invite' , { invitee_id : user . id } ) ;
10
12
}
11
13
}
You can’t perform that action at this time.
0 commit comments