瀏覽代碼

fix prepareSlackMessageForComment

Yuki Takei 4 年之前
父節點
當前提交
c5d81c84b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/app/src/server/util/slack.js

+ 1 - 1
packages/app/src/server/util/slack.js

@@ -134,7 +134,7 @@ export const prepareSlackMessageForComment = (comment, user, appTitle, siteUrl,
     channel: (channel != null) ? `#${channel}` : undefined,
     username: appTitle,
     text,
-    attachments: JSON.stringify([attachment]),
+    attachments: [attachment],
   };
 
   return message;