Fix writeFileSync data
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Giesel 2020-04-29 16:30:37 +02:00
parent 4e51dafdc0
commit e79053c834
2 changed files with 13 additions and 10 deletions

View file

@ -7,3 +7,6 @@ services:
image: registry.cliffbreak.de/trellobot
environment:
NODE_ENV: production
volumes:
- './conf.json:/usr/src/app/conf.json'
- './auth:/usr/src/app/.auth'

View file

@ -316,7 +316,7 @@ events.on('updateCheckItemStateOnCard', (event, board) => {
events.on('maxId', (id) => {
if (latestActivityID == id) return
latestActivityID = id
fs.writeFileSync('.latestActivityID', id)
fs.writeFileSync('.latestActivityID', id.toString())
})
const send = (embed, content = ``) => conf.channel.send(`${content} ${conf.contentString}`, { embed: embed }).catch(err => console.error(err))