fix(notify): modify NotifyRobotWithCtx

This commit is contained in:
rainzm
2021-09-27 11:04:00 +08:00
parent 29d53eb04a
commit 964a64949e
+1 -1
View File
@@ -134,7 +134,7 @@ func NotifyRobot(robotIds []string, priority npk.TNotifyPriority, event string,
// NotifyRobot will send messages via all robot contact type such as dingtalk-robot.
func NotifyRobotWithCtx(ctx context.Context, robotIds []string, priority npk.TNotifyPriority, event string, data jsonutils.JSONObject) error {
rawNotify(context.Background(), sNotifyParams{
rawNotify(ctx, sNotifyParams{
robots: robotIds,
channel: npk.NotifyByRobot,
priority: priority,