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
@@ -4,13 +4,13 @@ export default class FragmentHostSourceSerializer extends JSONSerializer {
|
||||
// =methods
|
||||
|
||||
/**
|
||||
* Renames `id` to `host_set_id` because fragments may not have IDs.
|
||||
* Renames `id` to `host_source_id` because fragments may not have IDs.
|
||||
* Otherwise normalizes as normal.
|
||||
* @param {ModelClass} typeClass
|
||||
* @param {object} resourceHash
|
||||
* @return {object}
|
||||
*/
|
||||
normalize(typeClass, { id: host_set_id, ...obj }) {
|
||||
return super.normalize(typeClass, { host_set_id, ...obj });
|
||||
normalize(typeClass, { id: host_source_id, ...obj }) {
|
||||
return super.normalize(typeClass, { host_source_id, ...obj });
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user