chore: 🤖 rename host_set_id to host_source_id internally
This commit is contained in:
9 files changed
+29
-29
No files matched your search
@@ -7,7 +7,7 @@ export default class FragmentHostSourceModel extends Fragment {
|
||||
@attr('string', {
|
||||
description: 'ID of the related host set',
|
||||
})
|
||||
host_set_id;
|
||||
host_source_id;
|
||||
|
||||
@attr('string', {
|
||||
description: 'ID of the catalog to which the host set belongs',
|
||||
|
||||
@@ -39,8 +39,8 @@ export default class TargetModel extends GeneratedTargetModel {
|
||||
@computed('host_sets.[]', 'store')
|
||||
get hostSets() {
|
||||
return this.host_sets
|
||||
.map(({ host_set_id, host_catalog_id }) => ({
|
||||
model: this.store.peekRecord('host-set', host_set_id),
|
||||
.map(({ host_source_id, host_catalog_id }) => ({
|
||||
model: this.store.peekRecord('host-set', host_source_id),
|
||||
hostCatalog: this.store.peekRecord('host-catalog', host_catalog_id),
|
||||
}))
|
||||
.filter((hostSetRef) => hostSetRef.model !== null);
|
||||
|
||||
Reference in new issue
Block a user