mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #9613 from rainzm/notify/webconsole
fix(notify): fit correctly when send notification via contact
This commit is contained in:
@@ -78,7 +78,7 @@ const (
|
||||
|
||||
func (nm *SNotificationManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.NotificationCreateInput) (api.NotificationCreateInput, error) {
|
||||
// compatible
|
||||
if len(input.Receivers) == 0 && input.ContactType == api.WEBCONSOLE {
|
||||
if len(input.Receivers) != 0 && input.ContactType == api.WEBCONSOLE {
|
||||
input.Contacts = input.Receivers
|
||||
input.Receivers = []string{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user