🐛 Alloc wrong database
This commit is contained in:
parent
0132b91394
commit
ca64e056b9
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user