From ca64e056b9e161af46027312ac8c7fa55671d379 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 2 Nov 2024 13:41:11 +0800 Subject: [PATCH] :bug: Alloc wrong database --- pkg/internal/database/source.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/internal/database/source.go b/pkg/internal/database/source.go index e5da27d..2a55cc7 100644 --- a/pkg/internal/database/source.go +++ b/pkg/internal/database/source.go @@ -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) }