From 28eefb619704e0d2053487d4dc589e49b8734e97 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 5 Mar 2025 16:36:37 +0300 Subject: [PATCH] make the ReadStringEntry func accessible --- store/tokens.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/tokens.go b/store/tokens.go index 7c3ad0c..a7770c7 100644 --- a/store/tokens.go +++ b/store/tokens.go @@ -64,7 +64,7 @@ func ReadTransactionData(ctx context.Context, store DataStore, sessionId string) return data, errors.New("invalid struct field: " + fieldName) } - value, err := readStringEntry(ctx, store, sessionId, key) + value, err := ReadStringEntry(ctx, store, sessionId, key) if err != nil { return data, err } @@ -74,7 +74,7 @@ func ReadTransactionData(ctx context.Context, store DataStore, sessionId string) return data, nil } -func readStringEntry(ctx context.Context, store DataStore, sessionId string, key storedb.DataTyp) (string, error) { +func ReadStringEntry(ctx context.Context, store DataStore, sessionId string, key storedb.DataTyp) (string, error) { entry, err := store.ReadEntry(ctx, sessionId, key) if err != nil { return "", err