Add alias for recordID in the Record Dict() fn

This commit is contained in:
Denis Arh
2021-04-01 21:10:51 +02:00
parent 98e2a88b0e
commit 4b347535e9
+1
View File
@@ -136,6 +136,7 @@ func (r Record) DynamicRoles(userID uint64) []uint64 {
func (r Record) Dict() map[string]interface{} {
dict := map[string]interface{}{
"ID": r.ID,
"recordID": r.ID,
"moduleID": r.ModuleID,
"labels": r.Labels,
"namespaceID": r.NamespaceID,