diff --git a/index.js b/index.js index 5ac3378..3832987 100644 --- a/index.js +++ b/index.js @@ -76,15 +76,15 @@ app.post("/edcal", (req, res) => { if (req.body.command != 'edcal') { articleTable = (articles .reverse() - .map(a => `|${a.title}|${a.in_charge.map(u=>u.name).join(',')}|${a.due_date}|${a.publish_date}|${a.status}|`) + .map(a => `|${a.title}|${a.in_charge.map(u=>u.name[0]).join(',')}|${a.due_date}|${a.publish_date}|${a.status}|`) .join("\n")) res.send({ response_type: "in_channel", text: `--- #### Editorial Calendar -|Title|In charge|Due Date|Publish Date|Status| -|:----|:--------|:-------|:-----------|:-----| +|Title|PP|Due Date|Publish Date|Status| +|:----|:-|:-------|:-----------|:-----| ${articleTable} ---`, })