refactor: 💡 Stop using recording store to use session-recording

This commit is contained in:
Carlos Alcaide committed 2023-03-16 11:46:11 -07:00
1 parent d08ce29e5a
commit c6bcfd32d5
4 files changed
+14 -15

No files matched your search

@@ -27,7 +27,7 @@ export default class ScopesScopeSessionRecordingsRoute extends Route {
const scope = this.modelFor('scopes.scope');
const { id: scope_id } = scope;
// if (this.can.can('list session-recording', scope, { collection: 'session-recordings' })) {
return this.store.query('recording', { scope_id });
return this.store.query('session-recording', { scope_id });
// }
}
@@ -17,6 +17,6 @@ export default class ScopesScopeSessionRecordingsSessionRecordingRoute extends R
}
async model({ session_recording_id }) {
return this.store.findRecord('recording', session_recording_id);
return this.store.findRecord('session-recording', session_recording_id);
}
}