Skip to content

Commit

Permalink
Remove debug print statements from GetAccount function
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfarrelldev committed Nov 22, 2024
1 parent caf7ec5 commit ec3d57a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/account/get_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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)
Expand Down

0 comments on commit ec3d57a

Please sign in to comment.