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