Abbreviate PPs
And call them 'PP's instead of 'In charge' 😉
This commit is contained in:
parent
41a095e465
commit
ced39b9328
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -76,15 +76,15 @@ app.post("/edcal", (req, res) => {
|
||||||
if (req.body.command != 'edcal') {
|
if (req.body.command != 'edcal') {
|
||||||
articleTable = (articles
|
articleTable = (articles
|
||||||
.reverse()
|
.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"))
|
.join("\n"))
|
||||||
res.send({
|
res.send({
|
||||||
response_type: "in_channel",
|
response_type: "in_channel",
|
||||||
text: `---
|
text: `---
|
||||||
#### Editorial Calendar
|
#### Editorial Calendar
|
||||||
|
|
||||||
|Title|In charge|Due Date|Publish Date|Status|
|
|Title|PP|Due Date|Publish Date|Status|
|
||||||
|:----|:--------|:-------|:-----------|:-----|
|
|:----|:-|:-------|:-----------|:-----|
|
||||||
${articleTable}
|
${articleTable}
|
||||||
---`,
|
---`,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue