Changed account handle to user handler

This commit is contained in:
perp 2024-06-03 13:14:16 +01:00
parent 3833353d18
commit 46d5f27409

View File

@ -16,7 +16,7 @@ package database
import ( import (
"git.supernets.org/perp/gopay/internal/config" "git.supernets.org/perp/gopay/internal/config"
"git.supernets.org/perp/gopay/internal/database/account" "git.supernets.org/perp/gopay/internal/database/user"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
//_ "github.com/jackc/pgx/v5/stdlib" //_ "github.com/jackc/pgx/v5/stdlib"
@ -26,7 +26,7 @@ import (
// Database handler // Database handler
type Database struct { type Database struct {
Account *account.Account User *user.User
} }
// Return a new Database // Return a new Database
@ -43,7 +43,7 @@ func New(cfg *config.Database) *Database {
// Create database // Create database
database := &Database{ database := &Database{
Account: account.New(engine), User: user.New(engine),
} }
return database return database