From b072c1314b521741f020a7122b1dfbf993012082 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Fri, 6 Dec 2024 15:57:22 +0300 Subject: [PATCH] set session on read entry --- common/user_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/user_store.go b/common/user_store.go index c730b47..2dfc902 100644 --- a/common/user_store.go +++ b/common/user_store.go @@ -18,6 +18,7 @@ type UserDataStore struct { // ReadEntry retrieves an entry to the userdata store. func (store *UserDataStore) ReadEntry(ctx context.Context, sessionId string, typ DataTyp) ([]byte, error) { + store.SetSession(sessionId) store.SetPrefix(db.DATATYPE_USERDATA) k := PackKey(typ, []byte(sessionId)) return store.Get(ctx, k)