Skip to content

Commit

Permalink
Rebase (#296)
Browse files Browse the repository at this point in the history
* Release 12.1.2

* Release 12.1.2
  • Loading branch information
Alfagun74 committed Jun 16, 2024
1 parent b7d6591 commit ede6ef4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# GameVault Backend Server Changelog

## 12.1.2

Recommended Gamevault App Version: `v1.10.1.0`

### Changes

- Fixed a bug where demo mode was not blocking off malicious requests.

### Thanks

- @Toylerr

## 12.1.1

Recommended Gamevault App Version: `v1.10.0.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": "12.1.1",
"version": "12.1.2",
"description": "the self-hosted gaming platform for drm-free games",
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
"private": true,
Expand Down
7 changes: 1 addition & 6 deletions src/interceptors/disable-api-if.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from "@nestjs/common";
import { Reflector } from "@nestjs/core";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";

import { DISABLE_API_IF_KEY } from "../decorators/disable-api-if.decorator";

Expand All @@ -23,11 +22,7 @@ export class DisableApiIfInterceptor implements NestInterceptor {
);

if (disabled) {
return next.handle().pipe(
map(() => {
throw new MethodNotAllowedException("This API endpoint is disabled.");
}),
);
throw new MethodNotAllowedException("This API endpoint is disabled.");
}

return next.handle();
Expand Down

0 comments on commit ede6ef4

Please sign in to comment.