diff --git a/pkg/web/router/routes/data.go b/pkg/web/router/routes/data.go index cf7d0d2..fc80f6a 100644 --- a/pkg/web/router/routes/data.go +++ b/pkg/web/router/routes/data.go @@ -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)