Add integration test getting the Full Account,Resource,StatMetrics and Libphonenumber

This commit is contained in:
TeoV
2020-10-06 17:40:12 +03:00
committed by Dan Christian Bogos
parent 83a0a6ef1b
commit c4b228b041
2 changed files with 367 additions and 2 deletions

View File

@@ -169,8 +169,7 @@ func (dDP *libphonenumberDP) FieldAsInterface(fldPath []string) (val interface{}
val = dDP.cache
return
}
val, err = dDP.cache.FieldAsInterface(fldPath)
if err == utils.ErrNotFound { // in case not found in cache try to populate it
if val, err = dDP.cache.FieldAsInterface(fldPath); err == utils.ErrNotFound { // in case not found in cache try to populate it
return dDP.fieldAsInterface(fldPath)
}
return