Fix CountCdrs and adding tests for it

This commit is contained in:
DanB
2014-11-28 11:48:05 +01:00
parent 42a71347e8
commit 5f88e621f4
3 changed files with 45 additions and 1 deletions

View File

@@ -955,7 +955,7 @@ func (self *SQLStorage) GetStoredCdrs(qryFltr *utils.CdrsFilter) ([]*utils.Store
if err := q.Count(&cnt).Error; err != nil {
return nil, 0, err
}
return nil, 0, nil
return nil, cnt, nil
}
// Execute query
rows, err := q.Rows()