Skip to content

Commit

Permalink
Renames field in schema
Browse files Browse the repository at this point in the history
According to PR comment
  • Loading branch information
gagandeepb committed Jul 4, 2024
1 parent b8f903b commit 9acb3bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/trento_web/openapi/v1/schema/activity_log.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ defmodule TrentoWeb.OpenApi.V1.Schema.ActivityLog do
metadata: %Schema{
type: :object
},
inserted_at: %Schema{
occured_on: %Schema{
type: :string,
description: "Timestamp upon Activity Log entry insertion."
}
},
required: [:type, :actor, :metadata, :inserted_at]
required: [:type, :actor, :metadata, :occured_on]
}
})
end
3 changes: 2 additions & 1 deletion lib/trento_web/views/v1/activity_log_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ defmodule TrentoWeb.V1.ActivityLogView do
type: entry.type,
actor: entry.actor,
metadata: entry.metadata,
inserted_at: entry.inserted_at
# Time of occurence approximated by time of insertion in DB.
occured_on: entry.inserted_at
}
end
end

0 comments on commit 9acb3bb

Please sign in to comment.