diff --git a/src/network/server.ts b/src/network/server.ts index c4a02a1..3280b87 100644 --- a/src/network/server.ts +++ b/src/network/server.ts @@ -2,7 +2,7 @@ import debug from 'debug' import { dbConnection, firebaseConnection } from 'database' import { MAIN_TOPIC } from 'utils' -import { getClient, start as startMqtt } from './mqtt' +import { /* getClient, */ start as startMqtt } from './mqtt' import { socketConnection } from './socket' const namespace = `${MAIN_TOPIC}:Mqtt:Server` @@ -15,13 +15,13 @@ const start = async () => { await dbConnection(serverDebug).connect() }) - if (process.env.NODE_ENV !== 'local') { - const jobs = await import('../jobs') + // if (process.env.NODE_ENV !== 'local') { + // const jobs = await import('../jobs') - ;(Object.keys(jobs) as (keyof typeof jobs)[]).forEach(job => { - jobs[job](getClient(serverDebug)) - }) - } + // ;(Object.keys(jobs) as (keyof typeof jobs)[]).forEach(job => { + // jobs[job](getClient(serverDebug)) + // }) + // } } export { start }