diff --git a/app/serializers/event_serializer.rb b/app/serializers/event_serializer.rb index b1e89e6f7..ccfc21456 100644 --- a/app/serializers/event_serializer.rb +++ b/app/serializers/event_serializer.rb @@ -6,7 +6,7 @@ class EventSerializer attributes :subj_id, :obj_id, :source_id, :relation_type_id, :total, :message_action, :source_token, :license, :occurred_at, :timestamp - has_many :dois, record_type: :dois, serializer: DoiSerializer, id_method_name: :doi do |object| + has_many :dois, record_type: :dois, serializer: DoiSerializer, id_method_name: :uid do |object| Doi.find_by_id(object.doi).results end