From ec3d57aa28a937442c1d08a3a27437e704fdd2d8 Mon Sep 17 00:00:00 2001 From: Justin Farrell Date: Fri, 22 Nov 2024 13:13:53 -0500 Subject: [PATCH] Remove debug print statements from GetAccount function --- internal/account/get_account.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/account/get_account.go b/internal/account/get_account.go index 892b92b..50b8273 100644 --- a/internal/account/get_account.go +++ b/internal/account/get_account.go @@ -33,9 +33,6 @@ type GetAccountArgs struct { // @Failure 500 {object} error "Internal Server Error" // @Router /account/get_account [get] func GetAccount(w http.ResponseWriter, r *http.Request, db *sql.DB) error { - - fmt.Println("Getting account...") - if r.Method != "GET" { return errors.New("invalid request; request must be a GET request") } @@ -47,8 +44,6 @@ func GetAccount(w http.ResponseWriter, r *http.Request, db *sql.DB) error { return errors.New("account_id is required") } - fmt.Println("account id is", accountIdStr) - accountId, err := strconv.ParseInt(accountIdStr, 10, 64) if err != nil { http.Error(w, "invalid account_id", http.StatusBadRequest)