v0.0.378
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m18s

This commit is contained in:
Mike Schwörer 2024-01-16 15:04:10 +01:00
parent 295a098eb4
commit b9e9575b9b
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
3 changed files with 7 additions and 7 deletions

View File

@ -163,16 +163,16 @@ func (pctx PreContext) Start() (*AppContext, *gin.Context, *HTTPResponse) {
ictx, cancel := context.WithTimeout(context.Background(), langext.Coalesce(pctx.timeout, pctx.wrapper.requestTimeout))
actx := CreateAppContext(pctx.ginCtx, ictx, cancel)
if pctx.persistantData.sessionObj != nil {
err := pctx.persistantData.sessionObj.Init(pctx.ginCtx, ictx)
err := pctx.persistantData.sessionObj.Init(pctx.ginCtx, actx)
if err != nil {
cancel()
actx.Cancel()
return nil, nil, langext.Ptr(Error(exerr.Wrap(err, "Failed to init session").Build()))
}
}
actx := CreateAppContext(pctx.ginCtx, ictx, cancel)
return actx, pctx.ginCtx, nil
}

View File

@ -6,6 +6,6 @@ import (
)
type SessionObject interface {
Init(g *gin.Context, ctx context.Context) error
Init(g *gin.Context, ctx *AppContext) error
Finish(ctx context.Context, resp HTTPResponse) error
}

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.377"
const GoextVersion = "0.0.378"
const GoextVersionTimestamp = "2024-01-14T17:06:42+0100"
const GoextVersionTimestamp = "2024-01-16T15:04:10+0100"