From 516a1e0df4a3d34f1035d8665fe813b026e5bf24 Mon Sep 17 00:00:00 2001 From: RChandler234 Date: Tue, 5 Sep 2023 12:11:13 -0400 Subject: [PATCH] rebuild pls --- Dockerfile | 5 +++++ src/backend/src/services/users.services.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae70156cf8..2747947b90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,12 @@ COPY yarn.lock . COPY tsconfig.build.json . COPY ./src/backend/package.json src/backend/ COPY ./src/shared/package.json src/shared/ +RUN cd src/backend/ RUN yarn install +RUN cd ../../ +RUN cd src/shared/ +RUN yarn install +RUN cd ../../ COPY ./src/backend src/backend COPY ./src/shared src/shared RUN yarn prisma:generate diff --git a/src/backend/src/services/users.services.ts b/src/backend/src/services/users.services.ts index 3d96970e46..9d93ad18b2 100644 --- a/src/backend/src/services/users.services.ts +++ b/src/backend/src/services/users.services.ts @@ -147,15 +147,15 @@ export default class UsersService { }); if (!payload['given_name']) { - throw new HttpException(400, 'First Name not Found on Google Account'); + throw new HttpException(400, 'First Name was not Found on Google Account'); } if (!payload['family_name']) { - throw new HttpException(400, 'Last Name not Found on Google Account'); + throw new HttpException(400, 'Last Name was not Found on Google Account'); } if (!payload['email']) { - throw new HttpException(400, 'Email not Found on Google Account'); + throw new HttpException(400, 'Email was not Found on Google Account'); } // if not in database, create user in database