Skip to content

Commit

Permalink
fix request
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Dec 15, 2023
1 parent cb656b7 commit 22f6759
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process.title = 'Rotom';
import { config } from '@rotom/config';
import { ControllerConnection, DeviceControlConnection, DeviceWorkerConnection } from '@rotom/connections';
import { JobsDTO, JobsStatusDTO, StatusDTO, WorkerDTO } from '@rotom/types';
import { FastifyInstance } from 'fastify';
import { FastifyInstance, FastifyBodyParser } from 'fastify';

Check warning on line 5 in packages/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

'FastifyBodyParser' is defined but never used

Check warning on line 5 in packages/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Nx Cloud - Main Job / Run

'FastifyBodyParser' is defined but never used
import { inspect } from 'util';
import { WebSocketServer } from 'ws';
import {
Expand Down Expand Up @@ -544,6 +544,9 @@ const routes = async (fastifyInstance: FastifyInstance) => {
const requestBody = req.body;
const job = jobs.getById(jobId);

log.info(`${deviceIdsOrOrigins}`);
log.info(`${requestBody.deviceIdsOrOrigins}`);
log.info(`${requestBody}`);
if (!job) {
reply.code(404).send({ status: 'error', error: 'Job not found' });
return;
Expand Down

0 comments on commit 22f6759

Please sign in to comment.