v0.0.328
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 59s

This commit is contained in:
Mike Schwörer 2023-12-02 13:35:18 +01:00
parent 8a3965f666
commit 55d02b8c65
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
3 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ func Wrap(w *GinWrapper, fn WHandlerFunc) gin.HandlerFunc {
}
if pctx.persistantData.sessionObj != nil {
err := pctx.persistantData.sessionObj.Finish(reqctx, wrap)
err := (*pctx.persistantData.sessionObj).Finish(reqctx, wrap)
if err != nil {
wrap = Error(exerr.Wrap(err, "Failed to finish session").Any("originalResponse", wrap).Build())
}

View File

@ -28,7 +28,7 @@ type PreContext struct {
}
type preContextData struct {
sessionObj SessionObject
sessionObj *SessionObject
}
func (pctx *PreContext) URI(uri any) *PreContext {
@ -67,7 +67,7 @@ func (pctx *PreContext) WithTimeout(to time.Duration) *PreContext {
}
func (pctx *PreContext) WithSession(sessionObj SessionObject) *PreContext {
pctx.persistantData.sessionObj = sessionObj
pctx.persistantData.sessionObj = &sessionObj
return pctx
}
@ -164,7 +164,7 @@ func (pctx PreContext) Start() (*AppContext, *gin.Context, *HTTPResponse) {
ictx, cancel := context.WithTimeout(context.Background(), langext.Coalesce(pctx.timeout, pctx.wrapper.requestTimeout))
if pctx.persistantData.sessionObj != nil {
err := pctx.persistantData.sessionObj.Init(pctx.ginCtx, ictx)
err := (*pctx.persistantData.sessionObj).Init(pctx.ginCtx, ictx)
if err != nil {
cancel()
return nil, nil, langext.Ptr(Error(exerr.Wrap(err, "Failed to init session").Build()))

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.327"
const GoextVersion = "0.0.328"
const GoextVersionTimestamp = "2023-12-02T13:15:19+0100"
const GoextVersionTimestamp = "2023-12-02T13:35:18+0100"