Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b251b5

Browse files
committedSep 16, 2024
Add updated_at to app JSON object
1 parent 7223370 commit 6b251b5

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed
 

‎lib/plexus_web/controllers/api/v1/app_json.ex

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ defmodule PlexusWeb.API.V1.AppJSON do
1919
%{
2020
package: app.package,
2121
name: app.name,
22-
icon_url: app.icon_url
22+
icon_url: app.icon_url,
23+
updated_at: DateTime.truncate(app.updated_at, :second)
2324
}
2425
|> merge_scores(app.scores)
2526
end

‎lib/plexus_web/controllers/api/v1/schemas/app.ex

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defmodule PlexusWeb.API.V1.Schemas.App do
1616
example: %{
1717
"name" => "Signal",
1818
"package" => "org.thoughtcrime.securesms",
19+
"updated_at" => "2024-04-30T22:41:19Z",
1920
"scores" => %{
2021
"native" => %{
2122
"rating_type" => "native",

‎lib/plexus_web/controllers/api/v1/schemas/app_response.ex

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ defmodule PlexusWeb.API.V1.Schemas.AppResponse do
1414
%{
1515
"name" => "Signal",
1616
"package" => "org.thoughtcrime.securesms",
17+
"updated_at" => "2024-04-30T22:41:19Z",
1718
"scores" => %{
1819
"native" => %{
1920
"rating_type" => "native",

‎lib/plexus_web/controllers/api/v1/schemas/apps_response.ex

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ defmodule PlexusWeb.API.V1.Schemas.AppsResponse do
1717
%{
1818
"name" => "Signal",
1919
"package" => "org.thoughtcrime.securesms",
20+
"updated_at" => "2024-04-30T22:41:19Z",
2021
"scores" => %{
2122
"native" => %{
2223
"rating_type" => "native",

0 commit comments

Comments
 (0)
Please sign in to comment.