mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 23:35:00 +08:00
Fix API V2 endpoints for item relationships [SCI-9719] (#6893)
This commit is contained in:
parent
9e26d24dc9
commit
79ac010a05
1 changed files with 4 additions and 4 deletions
|
@ -5,10 +5,10 @@ module Api
|
||||||
class InventoryItemRelationshipSerializer < ActiveModel::Serializer
|
class InventoryItemRelationshipSerializer < ActiveModel::Serializer
|
||||||
type :inventory_item_relationships
|
type :inventory_item_relationships
|
||||||
|
|
||||||
belongs_to :parent, serializer: InventoryItemSerializer
|
belongs_to :parent, serializer: Api::V1::InventoryItemSerializer
|
||||||
belongs_to :child, serializer: InventoryItemSerializer
|
belongs_to :child, serializer: Api::V1::InventoryItemSerializer
|
||||||
belongs_to :created_by, serializer: UserSerializer
|
belongs_to :created_by, serializer: Api::V1::UserSerializer
|
||||||
belongs_to :last_modified_by, serializer: UserSerializer
|
belongs_to :last_modified_by, serializer: Api::V1::UserSerializer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue