Преглед на файлове

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,
     channel: (channel != null) ? `#${channel}` : undefined,
     username: appTitle,
     username: appTitle,
     text,
     text,
-    attachments: JSON.stringify([attachment]),
+    attachments: [attachment],
   };
   };
 
 
   return message;
   return message;