mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Removed getUniqueCDRID
This commit is contained in:
committed by
Dan Christian Bogos
parent
7a9a85a60d
commit
d9654460ac
@@ -110,15 +110,6 @@ func (cgrEv *CGREvent) AsDataProvider() (ev MapStorage) {
|
||||
}
|
||||
}
|
||||
|
||||
func (cgrEv *CGREvent) GetCDRUniqueID() string {
|
||||
if chargeId, ok := cgrEv.APIOpts[MetaChargeID]; ok {
|
||||
return IfaceAsString(chargeId)
|
||||
} else if cgrId, ok := cgrEv.Event[CGRID]; ok {
|
||||
return IfaceAsString(cgrId)
|
||||
}
|
||||
return UUIDSha1Prefix()
|
||||
}
|
||||
|
||||
type EventsWithOpts struct {
|
||||
Event map[string]interface{}
|
||||
Opts map[string]interface{}
|
||||
|
||||
Reference in New Issue
Block a user