store: save updates state in database

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-06-06 16:59:53 -06:00
parent a4aedec044
commit 323fe1603e
6 changed files with 232 additions and 53 deletions
+2 -2
View File
@@ -36,6 +36,6 @@ func (c *Container) Upgrade(ctx context.Context) error {
return c.db.Upgrade(ctx)
}
func (c *Container) GetSessionStore(telegramUserID int64) *SessionStore {
return &SessionStore{c.db, telegramUserID}
func (c *Container) GetScopedStore(telegramUserID int64) *scopedStore {
return &scopedStore{c.db, telegramUserID}
}