Fix session cleanup on error paths
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func friendVariety(ctx *gin.Context) {
|
||||
ss := session.Get(ctx)
|
||||
defer ss.Finalize()
|
||||
defer ss.FinalizeOrRollback()
|
||||
|
||||
ss.Respond(noticeschema.FriendVarietyResp{
|
||||
ResponseData: noticeschema.FriendVarietyData{
|
||||
|
||||
Reference in New Issue
Block a user