Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGallauner committed May 9, 2024
1 parent 9ee7e0e commit 577a9d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/handler_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func (cfg *BookclubServer) handlerLogin(w http.ResponseWriter, r *http.Request)
//todo logging
respondWithError(w, 400, "Unable to login user.")
}
//todo return login response
loginResponse := LoginResponse{Name: persistedUser.Name, Email: persistedUser.Email, Jwt: jwt}
respondWithJSON(w, 200, loginResponse)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (r *PostgresLinkRepository) Get(senderId uint, receiverId uint) (Link, erro
return link, nil
}

func (r *PostgresLinkRepository) GetById(userId string) ([]Link, error) { //todo
func (r *PostgresLinkRepository) GetById(userId string) ([]Link, error) {
var links []Link

// Build the query with OR condition
Expand All @@ -115,7 +115,7 @@ func (r *PostgresLinkRepository) GetById(userId string) ([]Link, error) { //todo
return links, nil
}

func (r *PostgresLinkRepository) GetAcceptedById(userId uint) ([]Link, error) { //todo
func (r *PostgresLinkRepository) GetAcceptedById(userId uint) ([]Link, error) {
var links []Link

// Build the query with OR condition
Expand Down

0 comments on commit 577a9d4

Please sign in to comment.