mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 07:49:41 -05:00
add missing messageRichParameters
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -249,6 +249,16 @@ func (c *Converter) virusMessage(eventid string, nt NotificationTemplate, execut
|
||||
return OC10Notification{}, err
|
||||
}
|
||||
|
||||
dets := map[string]interface{}{
|
||||
"resource": map[string]string{
|
||||
"name": filename,
|
||||
},
|
||||
"virus": map[string]interface{}{
|
||||
"name": virus,
|
||||
"scandate": ts,
|
||||
},
|
||||
}
|
||||
|
||||
return OC10Notification{
|
||||
EventID: eventid,
|
||||
Service: c.serviceName,
|
||||
@@ -260,7 +270,7 @@ func (c *Converter) virusMessage(eventid string, nt NotificationTemplate, execut
|
||||
SubjectRaw: subjraw,
|
||||
Message: msg,
|
||||
MessageRaw: msgraw,
|
||||
MessageDetails: generateDetails(nil, nil, nil, nil),
|
||||
MessageDetails: dets,
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -272,6 +282,12 @@ func (c *Converter) policiesMessage(eventid string, nt NotificationTemplate, exe
|
||||
return OC10Notification{}, err
|
||||
}
|
||||
|
||||
dets := map[string]interface{}{
|
||||
"resource": map[string]string{
|
||||
"name": filename,
|
||||
},
|
||||
}
|
||||
|
||||
return OC10Notification{
|
||||
EventID: eventid,
|
||||
Service: c.serviceName,
|
||||
@@ -282,7 +298,7 @@ func (c *Converter) policiesMessage(eventid string, nt NotificationTemplate, exe
|
||||
SubjectRaw: subjraw,
|
||||
Message: msg,
|
||||
MessageRaw: msgraw,
|
||||
MessageDetails: generateDetails(nil, nil, nil, nil),
|
||||
MessageDetails: dets,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user