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