Skip to content

Commit

Permalink
fix(server): 修复 alert 通知 @ 人不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyao27 committed Sep 9, 2022
1 parent 34762de commit 67bb1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/api/alert/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function switchWebhookTypeAndGetFormatResult(
}
if (at) {
result.at = {
atMobiles: at,
atMobiles: [at],
isAtAll: false,
}
}
Expand All @@ -41,7 +41,7 @@ function switchWebhookTypeAndGetFormatResult(
text: { content: text },
}
if (at) {
result.text.mentioned_mobile_list = at
result.text.mentioned_mobile_list = [at]
}
return result
}
Expand Down

0 comments on commit 67bb1f0

Please sign in to comment.