refactoring, fixes and laniakea v0.8
This commit is contained in:
@@ -2,8 +2,8 @@ package red
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"ymgb/database"
|
||||
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"github.com/google/uuid"
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
@@ -12,7 +12,7 @@ type AiRepository struct {
|
||||
client *redis.Client
|
||||
}
|
||||
|
||||
func NewAiRepository(db *laniakea.DatabaseContext) AiRepository {
|
||||
func NewAiRepository(db *database.Context) AiRepository {
|
||||
return AiRepository{client: db.Redis}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user