mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
fixed loading issue
This commit is contained in:
@@ -80,6 +80,9 @@ func openStringCSVReader(data string, comma rune) (csvReader *csv.Reader, fp *os
|
||||
}
|
||||
|
||||
func (csvr *CSVReader) WriteToDatabase(storage DataStorage, flush, verbose bool) (err error) {
|
||||
if storage == nil {
|
||||
return errors.New("No database connection!")
|
||||
}
|
||||
if flush {
|
||||
storage.Flush()
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ func (rs *GosexyStorage) SetActionTimings(key string, ats ActionTimings) (err er
|
||||
_, err = rs.db.Del(ACTION_TIMING_PREFIX + key)
|
||||
return err
|
||||
}
|
||||
result, err := rs.ms.Marshal(ats)
|
||||
result, err := rs.ms.Marshal(&ats)
|
||||
_, err = rs.db.Set(ACTION_TIMING_PREFIX+key, result)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user