Update DBIServerTransformer to fetch the dbi_server relationship.
This commit is contained in:
@@ -13,7 +13,9 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.DBIServerTransformer do
|
||||
name: get_in(json_body, ["attributes", "name"]),
|
||||
url: get_in(json_body, ["attributes", "url"]),
|
||||
inserted_at: get_in(json_body, ["attributes", "inserted_at"]),
|
||||
updated_at: get_in(json_body, ["attributes", "updated_at"])
|
||||
updated_at: get_in(json_body, ["attributes", "updated_at"]),
|
||||
# relationship
|
||||
dbi_server_id: get_in(json_body, ["attributes", "dbi_server_id"])
|
||||
}
|
||||
|
||||
{:ok, attrs}
|
||||
|
||||
Reference in New Issue
Block a user