Skip to content

Commit

Permalink
Merge pull request #208 from Phalcode/develop
Browse files Browse the repository at this point in the history
Release 8.0.3
  • Loading branch information
Alfagun74 committed Oct 19, 2023
2 parents 4821109 + 0acc20a commit 7707757
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# GameVault Backend Server Changelog


## 8.0.3

Recommended Gamevault App Version: `v1.7.0`

### Changes

- Fixed Bug of 8.0.2 that using no filters at all would crash the server

## 8.0.2

Recommended Gamevault App Version: `v1.7.0`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamevault-backend",
"version": "8.0.2",
"version": "8.0.3",
"description": "the self-hosted gaming platform for drm-free games",
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
"private": true,
Expand Down
12 changes: 7 additions & 5 deletions src/modules/games/games.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ export class GamesController {
@MinimumRole(Role.GUEST)
async get(@Paginate() query: PaginateQuery): Promise<Paginated<Game>> {
const relations = ["box_image"];
if (query.filter["genres.name"]) {
relations.push("genres");
}
if (query.filter["tags.name"]) {
relations.push("tags");
if (query.filter) {
if (query.filter["genres.name"]) {
relations.push("genres");
}
if (query.filter["tags.name"]) {
relations.push("tags");
}
}

return paginate(query, this.gamesRepository, {
Expand Down

0 comments on commit 7707757

Please sign in to comment.