updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user