Skip to content

Commit

Permalink
go: Commit transaction in getUserLivestreamsHandler() (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt authored Nov 3, 2023
1 parent 003fcfc commit edae280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/go/livestream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ func getUserLivestreamsHandler(c echo.Context) error {
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}

if err := tx.Commit(); err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}

return c.JSON(http.StatusOK, livestreams)
}

Expand Down

0 comments on commit edae280

Please sign in to comment.