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