Skip to content

Commit

Permalink
Perhaps this returns deviceId to front end correctly?
Browse files Browse the repository at this point in the history
  • Loading branch information
jfberry committed Nov 29, 2023
1 parent 55ea8fc commit 9429915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ const routes = async (fastifyInstance: FastifyInstance) => {
const connection = currentConnections[workerId];
const isAllocated = !unallocatedConnections.includes(workerId);

const deviceId = Object.keys(controlConnections).find((deviceId) => workerId.startsWith(deviceId));
const deviceId = connection.mitm?.deviceId ?? Object.keys(controlConnections).find((deviceId) => workerId.startsWith(deviceId));

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

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

Replace `·connection.mitm?.deviceId·??` with `⏎··········connection.mitm?.deviceId·??⏎·········`

return {
deviceId,
Expand Down

0 comments on commit 9429915

Please sign in to comment.