From f0a4a0df61c6c34ad4a1d04918e3623ab0a51dfb Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 5 Jan 2025 07:19:25 +0000 Subject: [PATCH] Correct package name in errors, add state store getter --- common/storage.go | 4 ++++ errors/errors.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/storage.go b/common/storage.go index 7fefcc3..949a9de 100644 --- a/common/storage.go +++ b/common/storage.go @@ -57,3 +57,7 @@ func(ss *StorageService) GetUserdataDb(ctx context.Context) (db.Db, error) { func(ss *StorageService) GetResource(ctx context.Context) (resource.Resource, error) { return nil, errors.New("not implemented") } + +func(ss *StorageService) GetStateStore(ctx context.Context) (db.Db, error) { + return ss.svc.GetStateStore(ctx) +} diff --git a/errors/errors.go b/errors/errors.go index 7dba1de..890d344 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -1,4 +1,4 @@ -package common +package errors import ( "git.grassecon.net/urdt/ussd/internal/handlers"