Skip to content

fix(gaming): return review fields from the admin game search - #291

Merged
okapitula merged 1 commit into
devfrom
fix/admin-game-search-output
Oct 9, 2026
Merged

okapitula merged 1 commit into
devfrom
fix/admin-game-search-output

Conversation

@okapitula

Copy link
Copy Markdown
Collaborator

Summary

POST /backoffice/gaming/games/search now outputs paginated(AdminGameSchema), the same item shape as listAdminGames, updateGame and reviewGame.

Why

The route declared paginated(GameSchema), so oRPC stripped reviewStatus, reviewedAt and createdAt from each result even though listGamesAdmin already maps rows through toAdminGame. A backoffice page that searches games and shows their review state could not type against the response. Only the contract changes; the service and query already return these fields.

Risks

None. The response gains three fields and loses none.

The backoffice game search declared the public game schema as its output, so
oRPC stripped reviewStatus, reviewedAt and createdAt from results the service
already returned. It now declares the admin game schema like the list route.
@okapitula
okapitula enabled auto-merge October 9, 2026 19:53
@okapitula
okapitula added this pull request to the merge queue Oct 9, 2026
Merged via the queue into dev with commit ed1284b Oct 9, 2026
6 checks passed
@okapitula
okapitula deleted the fix/admin-game-search-output branch October 9, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants