Don't use primary key for scrobbled tracks embeds
This commit is contained in:
@@ -7,6 +7,7 @@ defmodule LastFm.Album do
|
|||||||
musicbrainz_id: String.t(),
|
musicbrainz_id: String.t(),
|
||||||
title: String.t()
|
title: String.t()
|
||||||
}
|
}
|
||||||
|
@primary_key false
|
||||||
embedded_schema do
|
embedded_schema do
|
||||||
field :musicbrainz_id, :string
|
field :musicbrainz_id, :string
|
||||||
field :title, :string
|
field :title, :string
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ defmodule LastFm.Artist do
|
|||||||
image_data_hash: String.t() | nil
|
image_data_hash: String.t() | nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@primary_key false
|
||||||
embedded_schema do
|
embedded_schema do
|
||||||
field :musicbrainz_id, :string
|
field :musicbrainz_id, :string
|
||||||
field :name, :string
|
field :name, :string
|
||||||
|
|||||||
Reference in New Issue
Block a user