From 49882319587441d59375feafe8815a1cb7637d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=84?= Date: Wed, 30 Nov 2022 15:43:17 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20prisma=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package-lock.json | 60 +++++++++++++++++++-------------------- backend/package.json | 4 +-- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/backend/package-lock.json b/backend/package-lock.json index 09d94add..e8b44764 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@prisma/client": "^4.6.1", + "@prisma/client": "^4.7.0", "aws-sdk": "^2.1259.0", "axios": "^1.1.3", "bcrypt": "^5.1.0", @@ -37,7 +37,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.7.1", - "prisma": "^4.6.1", + "prisma": "^4.7.0", "ts-node": "^10.9.1", "tsc-watch": "^5.0.3", "tsconfig-paths": "^4.1.0", @@ -264,12 +264,12 @@ "dev": true }, "node_modules/@prisma/client": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.6.1.tgz", - "integrity": "sha512-M1+NNrMzqaOIxT7PBGcTs3IZo7d1EW/+gVQd4C4gUgWBDGgD9AcIeZnUSidgWClmpMSgVUdnVORjsWWGUameYA==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.7.0.tgz", + "integrity": "sha512-keXMa0oJWJGOzMEFKp+CEgzJPwnOtGSrnTWw6qMYxnypYrRFdNxqyA06EzELZexBhgM4oLooZ1jDJ3iy46wExA==", "hasInstallScript": true, "dependencies": { - "@prisma/engines-version": "4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32" + "@prisma/engines-version": "4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635" }, "engines": { "node": ">=14.17" @@ -284,16 +284,16 @@ } }, "node_modules/@prisma/engines": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.6.1.tgz", - "integrity": "sha512-3u2/XxvxB+Q7cMXHnKU0CpBiUK1QWqpgiBv28YDo1zOIJE3FCF8DI2vrp6vuwjGt5h0JGXDSvmSf4D4maVjJdw==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.7.0.tgz", + "integrity": "sha512-afKrVFktaZ1pOK12/uFl2hRsBWIJZuC5FdDtacuKk5x/mR+rC5AbA+PlN3ZCZbmYTaeiBMHjcU5wbT5z2N3nSQ==", "devOptional": true, "hasInstallScript": true }, "node_modules/@prisma/engines-version": { - "version": "4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32.tgz", - "integrity": "sha512-HUCmkXAU2jqp2O1RvNtbE+seLGLyJGEABZS/R38rZjSAafAy0WzBuHq+tbZMnD+b5OSCsTVtIPVcuvx1ySxcWQ==" + "version": "4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635.tgz", + "integrity": "sha512-ImczGEQ8NS1OUApEeyAGxC4uLTtQp0wI1+2wM4MeQLVwIQbyMHk1vOhWWE8Pwbi3rnzLcPvsIrd9sm6oNXhERw==" }, "node_modules/@tsconfig/node10": { "version": "1.0.9", @@ -3795,13 +3795,13 @@ } }, "node_modules/prisma": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.6.1.tgz", - "integrity": "sha512-BR4itMCuzrDV4tn3e2TF+nh1zIX/RVU0isKtKoN28ADeoJ9nYaMhiuRRkFd2TZN8+l/XfYzoRKyHzUFXLQhmBQ==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.7.0.tgz", + "integrity": "sha512-VsecNo0Ca3+bDTzSpJqIpdupKVhhQ8aOYeWc09JlUM89knqvhSrlMrg0U8BiOD4tFrY1OPaCcraK8leDBxKMBg==", "devOptional": true, "hasInstallScript": true, "dependencies": { - "@prisma/engines": "4.6.1" + "@prisma/engines": "4.7.0" }, "bin": { "prisma": "build/index.js", @@ -5017,23 +5017,23 @@ } }, "@prisma/client": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.6.1.tgz", - "integrity": "sha512-M1+NNrMzqaOIxT7PBGcTs3IZo7d1EW/+gVQd4C4gUgWBDGgD9AcIeZnUSidgWClmpMSgVUdnVORjsWWGUameYA==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.7.0.tgz", + "integrity": "sha512-keXMa0oJWJGOzMEFKp+CEgzJPwnOtGSrnTWw6qMYxnypYrRFdNxqyA06EzELZexBhgM4oLooZ1jDJ3iy46wExA==", "requires": { - "@prisma/engines-version": "4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32" + "@prisma/engines-version": "4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635" } }, "@prisma/engines": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.6.1.tgz", - "integrity": "sha512-3u2/XxvxB+Q7cMXHnKU0CpBiUK1QWqpgiBv28YDo1zOIJE3FCF8DI2vrp6vuwjGt5h0JGXDSvmSf4D4maVjJdw==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.7.0.tgz", + "integrity": "sha512-afKrVFktaZ1pOK12/uFl2hRsBWIJZuC5FdDtacuKk5x/mR+rC5AbA+PlN3ZCZbmYTaeiBMHjcU5wbT5z2N3nSQ==", "devOptional": true }, "@prisma/engines-version": { - "version": "4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32.tgz", - "integrity": "sha512-HUCmkXAU2jqp2O1RvNtbE+seLGLyJGEABZS/R38rZjSAafAy0WzBuHq+tbZMnD+b5OSCsTVtIPVcuvx1ySxcWQ==" + "version": "4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.7.0-74.39190b250ebc338586e25e6da45e5e783bc8a635.tgz", + "integrity": "sha512-ImczGEQ8NS1OUApEeyAGxC4uLTtQp0wI1+2wM4MeQLVwIQbyMHk1vOhWWE8Pwbi3rnzLcPvsIrd9sm6oNXhERw==" }, "@tsconfig/node10": { "version": "1.0.9", @@ -7640,12 +7640,12 @@ } }, "prisma": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.6.1.tgz", - "integrity": "sha512-BR4itMCuzrDV4tn3e2TF+nh1zIX/RVU0isKtKoN28ADeoJ9nYaMhiuRRkFd2TZN8+l/XfYzoRKyHzUFXLQhmBQ==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.7.0.tgz", + "integrity": "sha512-VsecNo0Ca3+bDTzSpJqIpdupKVhhQ8aOYeWc09JlUM89knqvhSrlMrg0U8BiOD4tFrY1OPaCcraK8leDBxKMBg==", "devOptional": true, "requires": { - "@prisma/engines": "4.6.1" + "@prisma/engines": "4.7.0" } }, "process-nextick-args": { diff --git a/backend/package.json b/backend/package.json index 56c64c8f..96a89bf9 100644 --- a/backend/package.json +++ b/backend/package.json @@ -5,7 +5,7 @@ "start": "NODE_ENV=prod node -r ./tsconfig-paths.js dist/index.js" }, "dependencies": { - "@prisma/client": "^4.6.1", + "@prisma/client": "^4.7.0", "aws-sdk": "^2.1259.0", "axios": "^1.1.3", "bcrypt": "^5.1.0", @@ -37,7 +37,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.7.1", - "prisma": "^4.6.1", + "prisma": "^4.7.0", "ts-node": "^10.9.1", "tsc-watch": "^5.0.3", "tsconfig-paths": "^4.1.0", From c9083dd883080aa9bfc685a389c0233f3ee26826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=84?= Date: Wed, 30 Nov 2022 15:43:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=9E=98=EB=AA=BB=EB=90=9C=20?= =?UTF-8?q?=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=9D=B4=EB=A6=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/apis/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/apis/index.ts b/backend/src/apis/index.ts index a1888f1a..bfaa50f6 100644 --- a/backend/src/apis/index.ts +++ b/backend/src/apis/index.ts @@ -30,7 +30,7 @@ router.post('/articles/temporary', catchAsync(articlesController.craeteTemporary router.post('/image', multer().single('image'), catchAsync(imagesController.createImage)); -router.get('/books/search', catchAsync(booksController.getSearchedBooks)); +router.get('/books/search', catchAsync(booksController.searchBooks)); router.get('/books/:bookId', decoder, catchAsync(booksController.getBook)); router.get('/books', decoder, catchAsync(booksController.getBooks)); router.post('/books', catchAsync(guard), catchAsync(booksController.createBook));