From 0b5ca3fe368ab5f6656451914c1927d7f35f6120 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 28 Nov 2013 18:20:00 +0200 Subject: [PATCH] missed one method call --- apier/v1/apier.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apier/v1/apier.go b/apier/v1/apier.go index 04303cbe6..7120dc1da 100644 --- a/apier/v1/apier.go +++ b/apier/v1/apier.go @@ -21,10 +21,12 @@ package apier import ( "errors" "fmt" + "github.com/cgrates/cgrates/config" "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/scheduler" "github.com/cgrates/cgrates/utils" + "path" ) @@ -46,7 +48,7 @@ type AttrDestination struct { } func (self *ApierV1) GetDestination(attr *AttrDestination, reply *AttrDestination) error { - if dst, err := self.DataDb.GetDestination(attr.Id); err != nil { + if dst, err := self.DataDb.GetDestination(attr.Id, false); err != nil { return errors.New(utils.ERR_NOT_FOUND) } else { reply.Id = dst.Id