chore: Remove WEBSOCKETS_ENABLED flag (#1383)

* chore: Remove WEBSOCKETS_ENALBED flag

* lint
This commit is contained in:
Tom Moor
2020-07-22 22:44:24 -07:00
committed by GitHub
parent 2cc6d7add8
commit 109efcaa27
7 changed files with 141 additions and 157 deletions

View File

@ -13,7 +13,9 @@ import subHours from "date-fns/sub_hours";
export default class Websockets {
async on(event: Event) {
if (process.env.WEBSOCKETS_ENABLED !== "true" || !socketio) return;
if (!socketio) {
return;
}
switch (event.name) {
case "documents.publish":