Skip to content

Commit

Permalink
Fix return device id
Browse files Browse the repository at this point in the history
  • Loading branch information
jfberry committed Nov 27, 2023
1 parent f931530 commit 8f93c42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ function identifyControlChannelFromWorkerId(workerId: string): string | null {
const connection = currentConnections[workerId]

Check failure on line 187 in packages/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

Insert `;`

if (connection) {
const workerId = connection.mitm?.workerId
if (workerId) {
return workerId
const deviceId = connection.mitm?.deviceId

Check failure on line 190 in packages/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

Insert `;`
if (deviceId) {
return deviceId

Check failure on line 192 in packages/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

Insert `;`
}
}

Expand Down

0 comments on commit 8f93c42

Please sign in to comment.