This commit is contained in:
2026-02-12 14:01:43 +03:00
parent e5a3b6253d
commit ee6729e12a
8 changed files with 36 additions and 48 deletions

View File

@@ -46,7 +46,7 @@ type RPRepository struct {
}
func NewRPRepository(db *laniakea.DatabaseContext) *RPRepository {
return &RPRepository{db: db.PostgresSQL}
return &RPRepository{db.PostgresSQL}
}
func (rep *RPRepository) GetOrCreateUser(id int64) (*RPUser, error) {

View File

@@ -122,5 +122,5 @@ func (rep *RPRepository) GetChatScenariosIDs(userId, waifuId int) []int {
return []int{0}
}
ids := strings.Split(res.Val(), ",")
return utils.Map(utils.StringToInt, ids)
return utils.Map(ids, utils.StringToInt)
}