From 0090dcbbb9799a013e835d83e32be31d8c82fcd1 Mon Sep 17 00:00:00 2001 From: David Oduneye Date: Fri, 2 Feb 2024 22:59:26 -0500 Subject: [PATCH] fix: parser error --- .gitignore | 2 ++ backend/src/controllers/auth.go | 2 +- frontend/node_modules/.yarn-integrity | 10 ---------- frontend/yarn.lock | 4 ---- 4 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 frontend/node_modules/.yarn-integrity delete mode 100644 frontend/yarn.lock diff --git a/.gitignore b/.gitignore index df5f21020..46329301c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store .env sac-cli +.vscode +.trunk \ No newline at end of file diff --git a/backend/src/controllers/auth.go b/backend/src/controllers/auth.go index 90fe882a9..48d898c63 100644 --- a/backend/src/controllers/auth.go +++ b/backend/src/controllers/auth.go @@ -66,7 +66,7 @@ func (a *AuthController) Login(c *fiber.Ctx) error { var userBody models.LoginUserResponseBody if err := c.BodyParser(&userBody); err != nil { - errors.FailedToParseRequestBody.FiberError(c) + return errors.FailedToParseRequestBody.FiberError(c) } user, err := a.authService.Login(userBody) diff --git a/frontend/node_modules/.yarn-integrity b/frontend/node_modules/.yarn-integrity deleted file mode 100644 index 044a5ddd9..000000000 --- a/frontend/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "darwin-arm64-115", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/frontend/yarn.lock b/frontend/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/frontend/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - -