Skip to content

Commit

Permalink
rebuild pls
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Sep 5, 2023
1 parent d6a915f commit 516a1e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/backend/src/services/users.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 516a1e0

Please sign in to comment.