compilation fixes

This commit is contained in:
Radu Ioan Fericean
2015-12-20 21:58:27 +02:00
parent e75dd526b2
commit 67f6b6df71

View File

@@ -217,15 +217,15 @@ func (self *ApierV1) SetAccount(attr utils.AttrSetAccount, reply *string) error
ap.AccountIDs[accID] = struct{}{}
schedulerReloadNeeded = true
// create tasks
for _, at := range actionPlan.ActionTimings {
for _, at := range ap.ActionTimings {
if at.IsASAP() {
t := &Task{
t := &engine.Task{
Uuid: utils.GenUUID(),
AccountID: accID,
ActionsID: at.ActionsID,
}
if err = tpr.ratingStorage.PushTask(t); err != nil {
return err
if err = self.RatingDb.PushTask(t); err != nil {
return 0, err
}
}
}