Фикс получения списка групп во второй версии api.
This commit is contained in:
2024-10-26 17:59:13 +04:00
parent ab15fdc136
commit 979877532c
4 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View File

@@ -58,3 +58,6 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# HTTPS cerificates # HTTPS cerificates
/cert/ /cert/
*.pem *.pem
# K8S test files
/k8s/

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "schedule-parser-next", "name": "schedule-parser-next",
"version": "2.0.1", "version": "2.0.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schedule-parser-next", "name": "schedule-parser-next",
"version": "2.0.1", "version": "2.0.2",
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"@nestjs/cache-manager": "^2.2.2", "@nestjs/cache-manager": "^2.2.2",

View File

@@ -1,6 +1,6 @@
{ {
"name": "schedule-parser-next", "name": "schedule-parser-next",
"version": "2.0.1", "version": "2.0.2",
"description": "", "description": "",
"author": "N08I40K", "author": "N08I40K",
"private": true, "private": true,

View File

@@ -17,7 +17,7 @@ import {
ApiResponse, ApiResponse,
ApiTags, ApiTags,
} from "@nestjs/swagger"; } from "@nestjs/swagger";
import { AuthRoles } from "../auth/auth-role.decorator"; import { AuthRoles, AuthUnauthorized } from "../auth/auth-role.decorator";
import { UserToken } from "../auth/auth.decorator"; import { UserToken } from "../auth/auth.decorator";
import { UserPipe } from "../auth/auth.pipe"; import { UserPipe } from "../auth/auth.pipe";
import { V2ScheduleService } from "./v2-schedule.service"; import { V2ScheduleService } from "./v2-schedule.service";
@@ -92,6 +92,7 @@ export class V2ScheduleController {
@ResultDto(V2ScheduleGroupNamesDto) @ResultDto(V2ScheduleGroupNamesDto)
@CacheKey("v2-schedule-group-names") @CacheKey("v2-schedule-group-names")
@UseInterceptors(CacheInterceptor) @UseInterceptors(CacheInterceptor)
@AuthUnauthorized()
@HttpCode(HttpStatus.OK) @HttpCode(HttpStatus.OK)
@Get("group-names") @Get("group-names")
async getGroupNames(): Promise<V2ScheduleGroupNamesDto> { async getGroupNames(): Promise<V2ScheduleGroupNamesDto> {