Update DBIServerTransformer to fetch the dbi_server relationship.

This commit is contained in:
2025-05-23 12:47:46 +03:00
parent f4eb929401
commit ea5ada751d
2 changed files with 7 additions and 3 deletions
@@ -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}