missed one method call

This commit is contained in:
Radu Ioan Fericean
2013-11-28 18:20:00 +02:00
parent b669d1d326
commit 0b5ca3fe36

View File

@@ -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