Update the AuthorTransformer to return a map instead of a struct.

This commit is contained in:
2025-03-18 18:31:58 +02:00
parent e08372102f
commit 85993dbe9a
2 changed files with 2 additions and 2 deletions
@@ -3,7 +3,7 @@ defmodule DecentralisedBookIndex.Sync.DataTransformers.AuthorTransformer do
alias DecentralisedBookIndex.Metadata.Author
def from_json(json_body) do
author = %Author{
author = %{
id: get_in(json_body, ["data", "id"]),
name: get_in(json_body, ["data", "attributes", "name"]),
description: get_in(json_body, ["data", "attributes", "description"]),