Update integration_tests

This commit is contained in:
TeoV
2017-10-31 12:53:27 +02:00
parent 46a6b5087b
commit 75fe09e4dc
14 changed files with 297 additions and 374 deletions

View File

@@ -762,7 +762,7 @@ func (self *SQLStorage) SetCDR(cdr *CDR, allowUpdate bool) error {
}
tx = self.db.Begin()
cdrSql.UpdatedAt = time.Now()
updated := tx.Model(&CDRsql{}).Where(&CDRsql{CGRID: cdr.CGRID, RunID: cdr.RunID, OriginID: cdr.OriginID}).Updates(cdrSql)
updated := tx.Model(&CDRsql{}).Where(&CDRsql{Cgrid: cdr.CGRID, RunID: cdr.RunID, OriginID: cdr.OriginID}).Updates(cdrSql)
if updated.Error != nil {
tx.Rollback()
return updated.Error