Fix writeFileSync data
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4e51dafdc0
commit
e79053c834
2 changed files with 13 additions and 10 deletions
|
@ -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'
|
|
@ -316,10 +316,10 @@ 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))
|
||||
const send = (embed, content = ``) => conf.channel.send(`${content} ${conf.contentString}`, { embed: embed }).catch(err => console.error(err))
|
||||
|
||||
const eventEnabled = (type) => conf.enabledEvents.length > 0 ? conf.enabledEvents.includes(type) : true
|
||||
|
||||
|
|
Loading…
Reference in a new issue