Skip to content

Commit

Permalink
Add updated_at to app JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkonidas committed Sep 16, 2024
1 parent 7223370 commit 6b251b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plexus_web/controllers/api/v1/app_json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ defmodule PlexusWeb.API.V1.AppJSON do
%{
package: app.package,
name: app.name,
icon_url: app.icon_url
icon_url: app.icon_url,
updated_at: DateTime.truncate(app.updated_at, :second)
}
|> merge_scores(app.scores)
end
Expand Down
1 change: 1 addition & 0 deletions lib/plexus_web/controllers/api/v1/schemas/app.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ defmodule PlexusWeb.API.V1.Schemas.App do
example: %{
"name" => "Signal",
"package" => "org.thoughtcrime.securesms",
"updated_at" => "2024-04-30T22:41:19Z",
"scores" => %{
"native" => %{
"rating_type" => "native",
Expand Down
1 change: 1 addition & 0 deletions lib/plexus_web/controllers/api/v1/schemas/app_response.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule PlexusWeb.API.V1.Schemas.AppResponse do
%{
"name" => "Signal",
"package" => "org.thoughtcrime.securesms",
"updated_at" => "2024-04-30T22:41:19Z",
"scores" => %{
"native" => %{
"rating_type" => "native",
Expand Down
1 change: 1 addition & 0 deletions lib/plexus_web/controllers/api/v1/schemas/apps_response.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ defmodule PlexusWeb.API.V1.Schemas.AppsResponse do
%{
"name" => "Signal",
"package" => "org.thoughtcrime.securesms",
"updated_at" => "2024-04-30T22:41:19Z",
"scores" => %{
"native" => %{
"rating_type" => "native",
Expand Down

0 comments on commit 6b251b5

Please sign in to comment.