Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg committed Aug 15, 2024
1 parent 12afa58 commit a368611
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/web/router/routes/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,24 +182,6 @@ func deleteData(i *do.Injector) http.HandlerFunc {
return
}
defer query.RollbackFunc(txQueryService, tx, w, &err)
// defer func() {
// rb := func(tx pgx.Tx) {
// err := txQueryService.Rollback(tx)
// if err != nil {
// log.Err(err).Msg("error rolling back transaction")
// }
// }
// if err != nil {
// rb(tx)
// } else {
// internalErr := txQueryService.Commit(tx)
// if internalErr != nil {
// log.Err(internalErr).Msg("error committing transaction")
// rb(tx)
// w.WriteHeader(http.StatusInternalServerError)
// }
// }
// }()
if err = userRepo.DeleteUserKeyTx(user, key.ID, tx); err != nil {
log.Err(err).Msg("could not delete key")
w.WriteHeader(http.StatusInternalServerError)
Expand Down

0 comments on commit a368611

Please sign in to comment.