Skip to content

Commit 4d7d23e

Browse files
committed
- Increased maximum allowed relations for game-repository.service.ts
1 parent da8b4b7 commit 4d7d23e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/game-repository/game-repository.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type TAllowedResource = keyof typeof resourceToEntityMap;
2929
@Injectable()
3030
export class GameRepositoryService {
3131
private readonly logger = new Logger(GameRepositoryService.name);
32-
private readonly maximumAllowedRelationsQuery = 2;
32+
private readonly maximumAllowedRelationsQuery = 3;
3333

3434
/**
3535
* @param dataSource
@@ -53,7 +53,7 @@ export class GameRepositoryService {
5353
).length;
5454
if (totalQueriedEntries > this.maximumAllowedRelationsQuery) {
5555
throw new HttpException(
56-
"For performance reasons, queries with more than 2 relations are not allowed.",
56+
`For performance reasons, queries with more than ${this.maximumAllowedRelationsQuery} relations are not allowed.`,
5757
HttpStatus.BAD_REQUEST,
5858
);
5959
}

0 commit comments

Comments
 (0)