Skip to content

Commit

Permalink
fix: file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 8, 2023
1 parent f0ccff7 commit 6b0e9d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/backend/src/backendManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { torBinForPlatform, torDirForPlatform } from './nest/common/utils'
import initRnBridge from './rn-bridge'
import { INestApplicationContext } from '@nestjs/common'
import logger from './nest/common/logger'
import { validateOptions } from './utils'
import { OpenServices, validateOptions } from './options'

const log = logger('backendManager')

Expand All @@ -33,14 +33,6 @@ const options = program.opts()

console.log('options', options)

interface OpenServices {
torControlPort?: any
socketIOPort?: any
socketIOSecret?: any
httpTunnelPort?: any
authCookie?: any
}

export const runBackendDesktop = async () => {
const isDev = process.env.NODE_ENV === 'development'

Expand Down Expand Up @@ -91,7 +83,7 @@ export const runBackendDesktop = async () => {
})
}

export const runBackendMobile = async (): Promise<any> => {
export const runBackendMobile = async () => {
// Enable triggering push notifications
process.env['BACKEND'] = 'mobile'
process.env['CONNECTION_TIME'] = (new Date().getTime() / 1000).toString() // Get time in seconds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import commander from 'commander'

export interface OpenServices {
torControlPort?: any
socketIOPort?: any
socketIOSecret?: any
httpTunnelPort?: any
authCookie?: any
}

interface Options {
platform?: any
dataPath?: any
Expand Down

0 comments on commit 6b0e9d9

Please sign in to comment.