From 25da31a301d45b6345e7fbf9e216dfbaf1176cc1 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 17 Jul 2014 11:40:07 +0300 Subject: [PATCH] updated apier for expiration date --- apier/apier.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apier/apier.go b/apier/apier.go index ccdcef247..c24df99cf 100644 --- a/apier/apier.go +++ b/apier/apier.go @@ -441,17 +441,17 @@ func (self *ApierV1) AddTriggeredAction(attr AttrAddActionTrigger, reply *string return fmt.Errorf("%s:%s", utils.ERR_SERVER_ERROR, err.Error()) } at := &engine.ActionTrigger{ - Id: utils.GenUUID(), - BalanceType: attr.BalanceType, - Direction: attr.Direction, - ThresholdType: attr.ThresholdType, - ThresholdValue: attr.ThresholdValue, - DestinationId: attr.DestinationId, - BalanceWeight: attr.BalanceWeight, - BalanceExpiryTime: balExpiryTime, - Weight: attr.Weight, - ActionsId: attr.ActionsId, - Executed: false, + Id: utils.GenUUID(), + BalanceType: attr.BalanceType, + Direction: attr.Direction, + ThresholdType: attr.ThresholdType, + ThresholdValue: attr.ThresholdValue, + DestinationId: attr.DestinationId, + BalanceWeight: attr.BalanceWeight, + BalanceExpirationDate: balExpiryTime, + Weight: attr.Weight, + ActionsId: attr.ActionsId, + Executed: false, } tag := utils.BalanceKey(attr.Tenant, attr.Account, attr.Direction)