From 7cd4ff24c82838e963be5ff04dabbb1360130092 Mon Sep 17 00:00:00 2001 From: scffs Date: Fri, 8 Dec 2023 00:17:31 +0700 Subject: [PATCH] wip --- .github/workflows/build-api.yml | 1 - apps/api/package.json | 3 ++- apps/api/src/handlers/userHandler.ts | 2 +- bun.lockb | Bin 105112 -> 105144 bytes 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 17976f9..07fbdb9 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -24,7 +24,6 @@ jobs: - name: Install dependencies in API run: | cd apps/api - bun add @prisma/client bun i - name: API build diff --git a/apps/api/package.json b/apps/api/package.json index 6888132..5a6c9ed 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -18,7 +18,8 @@ }, "devDependencies": { "bun-types": "latest", - "prisma": "^5.6.0" + "prisma": "^5.6.0", + "shared": "workspace:*" }, "repository": { "type": "git", diff --git a/apps/api/src/handlers/userHandler.ts b/apps/api/src/handlers/userHandler.ts index d5bcba6..05f344d 100644 --- a/apps/api/src/handlers/userHandler.ts +++ b/apps/api/src/handlers/userHandler.ts @@ -1,6 +1,6 @@ -import { User } from '@prisma/client' import { getAllUsers, getUserById } from '../services/userService' import { ApiResponse, ContextWith } from '../types' +import { User } from 'shared' type Params = { id: string } diff --git a/bun.lockb b/bun.lockb index 038c9208b62187d7fdcb097a0bcf7c85e7ade8ef..66201eb9c34983accc5e16ef6a42ea29224ce1c9 100644 GIT binary patch delta 6997 zcmeHLX;>6jx~@~wKtUR4Hn9PbQ5F@Nod(f%$>=D=7~(bUt{|YefYPX_i9n1|aRZNf z02Lu>T#~2^VbD=$)TmLTMqHAZRVOB{W7L^RCdTEyUw4&wpF8*dnCH3oSL*5ayx(?C zojOa^>94xkc~7%*r783;xsy*#*}LF!@!pGn?=^Q~#ksTV*oMf3PdYsLzV=Saf|AI_ zA*@|#ac+?l7u$O zz5$bd3`{rJ21eboH^ILFPXy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