diff --git a/CHANGELOG.md b/CHANGELOG.md index a113106..aca3f30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/src/interceptors/disable-api-if.interceptor.ts b/src/interceptors/disable-api-if.interceptor.ts index ad3c40e..d9d74da 100644 --- a/src/interceptors/disable-api-if.interceptor.ts +++ b/src/interceptors/disable-api-if.interceptor.ts @@ -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"; @@ -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();