From 69f732a9b890822266051dcd3d78726b912ee1bc Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:14:59 +0300 Subject: [PATCH 1/6] ci: test. add file with errors --- backend/src/book/book.controller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/book/book.controller.ts b/backend/src/book/book.controller.ts index e6fc180..103e1a8 100644 --- a/backend/src/book/book.controller.ts +++ b/backend/src/book/book.controller.ts @@ -8,7 +8,6 @@ import { ParseFilePipeBuilder, ParseIntPipe, Post, - Query, UploadedFile, UseGuards, UseInterceptors, From c8a08cbe3d28fc3c3d4af0112a0cb1e6da2fc13e Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:18:16 +0300 Subject: [PATCH 2/6] ci: refactor check-pr.yaml --- .github/workflows/check-pr.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml index 45694c3..ed91d5c 100644 --- a/.github/workflows/check-pr.yaml +++ b/.github/workflows/check-pr.yaml @@ -12,10 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 20.x.x - cache: npm - run: npm ci - run: npm run format:verify - run: npm run lint:verify From 9631e68119cc4b4d47123b053493fee83a2321b3 Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:20:41 +0300 Subject: [PATCH 3/6] ci: fix check-pr.yaml --- .github/workflows/check-pr.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml index ed91d5c..5518ac7 100644 --- a/.github/workflows/check-pr.yaml +++ b/.github/workflows/check-pr.yaml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci - - run: npm run format:verify - - run: npm run lint:verify - - run: npm run lint:types - - run: npm run test \ No newline at end of file + - run: yarn ci + - run: yarn run format:verify + - run: yarn run lint:verify + - run: yarn run lint:types + - run: yarn run test \ No newline at end of file From 57b43340f836e1f493a3005aab66c4a8960a73fc Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:22:09 +0300 Subject: [PATCH 4/6] ci: fix check-pr.yaml --- .github/workflows/check-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml index 5518ac7..c84d46f 100644 --- a/.github/workflows/check-pr.yaml +++ b/.github/workflows/check-pr.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: yarn ci + - run: npm ci - run: yarn run format:verify - run: yarn run lint:verify - run: yarn run lint:types From fa88ed96dcd65112b7cfefa435c2a60085e6f820 Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:25:58 +0300 Subject: [PATCH 5/6] ci: fix check-pr.yaml --- .github/workflows/check-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml index c84d46f..73356ce 100644 --- a/.github/workflows/check-pr.yaml +++ b/.github/workflows/check-pr.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci + - run: yarn - run: yarn run format:verify - run: yarn run lint:verify - run: yarn run lint:types From e21ba46d644f89e9a725379fe97b72d0445b6d64 Mon Sep 17 00:00:00 2001 From: RimidalU Date: Fri, 3 May 2024 12:33:59 +0300 Subject: [PATCH 6/6] ci: refactor file with errors --- backend/src/book/book.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/book/book.controller.ts b/backend/src/book/book.controller.ts index 103e1a8..6ecb031 100644 --- a/backend/src/book/book.controller.ts +++ b/backend/src/book/book.controller.ts @@ -7,7 +7,9 @@ import { Param, ParseFilePipeBuilder, ParseIntPipe, + Patch, Post, + Query, UploadedFile, UseGuards, UseInterceptors, @@ -182,7 +184,7 @@ export class BookController { ): Promise { await this.bookService.addEBook({ currentUserId, - bookId: "bookId", + bookId, data: file.buffer, originalname: file.originalname, mimetype: file.mimetype,