Update /edcal slash command to use actual name

This commit is contained in:
Badri Sunderarajan 2021-02-25 13:16:05 +05:30
parent 8626909ade
commit 42bd4de7ad
2 changed files with 2 additions and 1 deletions

View file

@ -2,3 +2,4 @@ SNIPBOT_PORT=5000
SNIPBOT_AIRTABLE_API_KEY=YOUR_API_KEY
SNIPBOT_AIRTABLE_BASE_ID=YOUR_AIRTABLE_BASE_ID
SNIPBOT_AIRTABLE_ENDPOINT=https://api.airtable.com
SNIPBOT_MATTERMOST_TOKEN=YOUR_SLASH_COMMAND_TOKEN

View file

@ -32,7 +32,7 @@ app.post("/add", (req, res) => {
res.send({ result: a + b })
})
app.get("/articles", (req, res) => {
app.post("/edcal", (req, res) => {
let articles = []
base('Articles').select({