Skip to content

Commit e785ea8

Browse files
committed
Move dashboard app higher to avoid Heroku 60s timeout
1 parent 6074bc2 commit e785ea8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"git.ignoreLimitWarning": true,
55
"eslint.validate": ["javascript"],
66
"editor.codeActionsOnSave": {
7-
"source.fixAll.eslint": true
8-
},
7+
"source.fixAll.eslint": "explicit"
8+
},
99
"[css]": {
1010
"editor.tabSize": 2,
1111
"editor.defaultFormatter": "esbenp.prettier-vscode"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
},
4040
"homepage": "https://github.com/samliew/se-electionbot#readme",
4141
"engines": {
42-
"npm": "8.x",
43-
"node": "^18.17.0 || >=20.5.0"
42+
"npm": "10.x",
43+
"node": ">=22.16.0"
4444
},
4545
"dependencies": {
4646
"axios": "^0.27.2",

src/bot/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ use defaults ${defaultChatNotSet}`
283283
});
284284
}
285285

286+
const dashboardApp = await startServer(client, room, config, election, scheduler, rescraper, announcement);
287+
286288
/*
287289
* Sync state from chat transcript on startup
288290
* - activityCounter, lastActivityTime, lastMessageTime, lastBotMessage, (botSentLastMessage)
@@ -404,8 +406,6 @@ use defaults ${defaultChatNotSet}`
404406
rm_election: ["reset election"]
405407
});
406408

407-
const dashboardApp = await startServer(client, room, config, election, scheduler, rescraper, announcement);
408-
409409
// Main event listener
410410
room.on('message', async (/** @type {WebsocketEvent} */ msg) => {
411411
const encodedMessage = await msg.content;

0 commit comments

Comments
 (0)