mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Fix integration tests in apis after changing GetAttrForEvent reply type
This commit is contained in:
committed by
Dan Christian Bogos
parent
c7619a604e
commit
bfa3fb7a4c
@@ -231,7 +231,7 @@ func (alS *AttributeService) processEvent(ctx *context.Context, tnt string, args
|
||||
|
||||
// V1GetAttributeForEvent returns the AttributeProfile that matches the event
|
||||
func (alS *AttributeService) V1GetAttributeForEvent(ctx *context.Context, args *AttrArgsProcessEvent,
|
||||
attrPrfl *AttributeProfile) (err error) {
|
||||
attrPrfl *APIAttributeProfile) (err error) {
|
||||
if args.CGREvent == nil {
|
||||
return utils.NewErrMandatoryIeMissing(utils.CGREventString)
|
||||
}
|
||||
@@ -252,7 +252,7 @@ func (alS *AttributeService) V1GetAttributeForEvent(ctx *context.Context, args *
|
||||
}
|
||||
return err
|
||||
}
|
||||
*attrPrfl = *attrPrf
|
||||
*attrPrfl = *(NewAPIAttributeProfile(attrPrf))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user