We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b539c83 commit 6a1283fCopy full SHA for 6a1283f
processor/consent.go
@@ -2,6 +2,7 @@ package processor
2
3
import (
4
"fmt"
5
+ "sort"
6
"strings"
7
8
"github.com/samber/lo"
@@ -261,7 +262,9 @@ func getConsentManagementInfo(event types.SingularEventT) (ConsentManagementInfo
261
262
consentManagementInfo.AllowedConsentIDs = val
263
case map[string]interface{}:
264
// Use keys from the map (legacy OneTrust format)
265
+ // Also, sort the keys
266
consentManagementInfo.AllowedConsentIDs = lo.Keys(val)
267
+ sort.Strings(consentManagementInfo.AllowedConsentIDs)
268
default:
269
consentManagementInfo.AllowedConsentIDs = []string{}
270
}
0 commit comments