refactor(hub): embed pocketbase fields in hub struct

This commit is contained in:
henrygd
2025-02-11 19:17:20 -05:00
parent 3376a97bea
commit 2ab2cc83de
6 changed files with 90 additions and 99 deletions

View File

@@ -6,12 +6,11 @@ import (
"log"
"net/http"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/core"
)
type UserManager struct {
app *pocketbase.PocketBase
app core.App
}
type UserSettings struct {
@@ -21,7 +20,7 @@ type UserSettings struct {
// Language string `json:"lang"`
}
func NewUserManager(app *pocketbase.PocketBase) *UserManager {
func NewUserManager(app core.App) *UserManager {
return &UserManager{
app: app,
}