Skip to content

Commit

Permalink
Merge pull request #1897 from stakwork/fix/last_withdrawal_panic
Browse files Browse the repository at this point in the history
remove panics and changed to prints
  • Loading branch information
elraphty authored Oct 21, 2024
2 parents cdc49aa + 942f813 commit 93cfe2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ func (oh *workspaceHandler) GetLastWithdrawal(w http.ResponseWriter, r *http.Req
workspace_uuid := chi.URLParam(r, "workspace_uuid")
lastWithdrawal := oh.db.GetLastWithdrawal(workspace_uuid)

log.Panicln("This workspaces last withdrawal is", workspace_uuid, lastWithdrawal)
log.Println("This workspaces last withdrawal is", workspace_uuid, lastWithdrawal)

hoursDiff := int64(1)

Expand All @@ -1043,7 +1043,7 @@ func (oh *workspaceHandler) GetLastWithdrawal(w http.ResponseWriter, r *http.Req
withdrawTime := utils.ConvertTimeToTimestamp(withdrawCreated.String())

hoursDiff = utils.GetHoursDifference(int64(withdrawTime), &now)
log.Panicln("This workspaces last withdrawal hours difference is", hoursDiff)
log.Println("This workspaces last withdrawal hours difference is", hoursDiff)
}

w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit 93cfe2f

Please sign in to comment.