Skip to content

Commit

Permalink
Release 12.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Jun 15, 2024
1 parent 214580b commit b5eb064
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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
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 b5eb064

Please sign in to comment.