chore: fix to get rid of deprecate-non-strict-relationships warning (#1835)
* chore: 🤖 add explicit inverse relationship
This commit is contained in:
1 parent
0e9042f588
commit
6d1b80aaf0
3 files changed
+20
-4
No files matched your search
@@ -9,7 +9,11 @@ import { belongsTo } from '@ember-data/model';
|
||||
export const MIME_TYPE_ASCIICAST = 'application/x-asciicast';
|
||||
|
||||
export default class ChannelRecordingModel extends GeneratedChannelRecordingModel {
|
||||
@belongsTo('connection-recording', { async: false }) connection_recording;
|
||||
@belongsTo('connection-recording', {
|
||||
async: false,
|
||||
inverse: 'channel_recordings',
|
||||
})
|
||||
connection_recording;
|
||||
|
||||
/**
|
||||
* True if the channel supports asciicast.
|
||||
|
||||
@@ -7,6 +7,14 @@ import GeneratedConnectionRecordingModel from '../generated/models/connection-re
|
||||
import { belongsTo, hasMany } from '@ember-data/model';
|
||||
|
||||
export default class ConnectionRecordingModel extends GeneratedConnectionRecordingModel {
|
||||
@belongsTo('session-recording', { async: false }) session_recording;
|
||||
@hasMany('channel-recording', { async: false }) channel_recordings;
|
||||
@belongsTo('session-recording', {
|
||||
async: false,
|
||||
inverse: 'connection_recordings',
|
||||
})
|
||||
session_recording;
|
||||
@hasMany('channel-recording', {
|
||||
async: false,
|
||||
inverse: 'connection_recording',
|
||||
})
|
||||
channel_recordings;
|
||||
}
|
||||
@@ -17,7 +17,11 @@ export const STATE_SESSION_RECORDING_AVAILABLE = 'available';
|
||||
export const STATE_SESSION_RECORDING_UNKNOWN = 'unknown';
|
||||
|
||||
export default class SessionRecordingModel extends GeneratedSessionRecordingModel {
|
||||
@hasMany('connection-recording', { async: false }) connection_recordings;
|
||||
@hasMany('connection-recording', {
|
||||
async: false,
|
||||
inverse: 'session_recording',
|
||||
})
|
||||
connection_recordings;
|
||||
|
||||
@service store;
|
||||
|
||||
|
||||
Reference in new issue
Block a user