chore: Improves linting rule to catch mishandled promises (#5506)

This commit is contained in:
Tom Moor
2023-07-01 13:25:51 -04:00
committed by GitHub
parent 7aec0e24ef
commit f843a20a54
13 changed files with 265 additions and 269 deletions

View File

@@ -53,6 +53,7 @@ export class ViewsExtension implements Extension {
// Set up an interval to update the last viewed at timestamp continuously
// while the user is connected. This should only be done once per socket.
// eslint-disable-next-line @typescript-eslint/no-misused-promises
const interval = setInterval(updateView, 30 * Second);
this.intervalsBySocket.set(socketId, interval);