🐛 Alloc wrong database

This commit is contained in:
LittleSheep 2024-11-02 13:41:11 +08:00
parent 0132b91394
commit ca64e056b9

View File

@ -2,6 +2,7 @@ package database
import (
"fmt"
"git.solsynth.dev/hydrogen/interactive/pkg/internal/gap"
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
"github.com/rs/zerolog/log"
@ -15,7 +16,7 @@ import (
var C *gorm.DB
func NewGorm() error {
dsn, err := cruda.NewCrudaConn(gap.Nx).AllocDatabase("passport")
dsn, err := cruda.NewCrudaConn(gap.Nx).AllocDatabase("interactive")
if err != nil {
return fmt.Errorf("failed to alloc database from nexus: %v", err)
}