Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Feb 19, 2024
1 parent 7b0500b commit 897ea8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions backend/src/controllers/club.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package controllers

import (
"fmt"

"github.com/GenerateNU/sac/backend/src/errors"
"github.com/GenerateNU/sac/backend/src/models"
"github.com/GenerateNU/sac/backend/src/services"
Expand All @@ -24,7 +22,6 @@ func (cl *ClubController) GetAllClubs(c *fiber.Ctx) error {
queryParams.Page = 1 // default page

if err := c.QueryParser(&queryParams); err != nil {
fmt.Println(err)
return errors.FailedtoParseQueryParams.FiberError(c)
}

Expand Down
3 changes: 0 additions & 3 deletions backend/src/services/auth.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package services

import (
"fmt"

"github.com/GenerateNU/sac/backend/src/auth"
"github.com/GenerateNU/sac/backend/src/errors"
"github.com/GenerateNU/sac/backend/src/models"
Expand Down Expand Up @@ -101,7 +99,6 @@ func (a *AuthService) UpdatePassword(id string, userBody models.UpdatePasswordRe

correct, passwordErr := auth.ComparePasswordAndHash(userBody.OldPassword, passwordHash)
if passwordErr != nil {
fmt.Println("err", passwordErr)
return &errors.FailedToValidateUser
}

Expand Down
4 changes: 4 additions & 0 deletions backend/tests/api/helpers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func (app TestApp) Send(request TestRequest) (*http.Response, error) {
Name: "access_token",
Value: app.TestUser.AccessToken,
})
req.AddCookie(&http.Cookie{
Name: "refresh_token",
Value: app.TestUser.RefreshToken,
})
}

resp, err := app.App.Test(req)
Expand Down

0 comments on commit 897ea8c

Please sign in to comment.