refactor: replace create-one-time-access-token script with in-app functionality (#540)

This commit is contained in:
Alessandro (Ale) Segala
2025-05-18 04:22:40 -07:00
committed by Elias Schneider
parent 35b227cd17
commit cb2a9f9f7d
8 changed files with 132 additions and 136 deletions

View File

@@ -23,7 +23,7 @@ import (
"github.com/pocket-id/pocket-id/backend/resources"
)
func newDatabase() (db *gorm.DB) {
func NewDatabase() (db *gorm.DB) {
db, err := connectDatabase()
if err != nil {
log.Fatalf("failed to connect to database: %v", err)