create frontend handler (#129)

This commit is contained in:
Michael Quigley
2022-12-01 16:14:42 -05:00
parent 81e5f7e469
commit c9db95fe03
4 changed files with 72 additions and 3 deletions

View File

@@ -90,9 +90,9 @@ func (h *shareHandler) Handle(params service.ShareParams, principal *rest_model_
}, tx)
if err != nil {
logrus.Errorf("error creating service record: %v", err)
_ = tx.Rollback()
return service.NewShareInternalServerError()
}
if err := tx.Commit(); err != nil {
logrus.Errorf("error committing service record: %v", err)
return service.NewShareInternalServerError()