From 22f6759370866294efe89a69d6d59fd457d327a3 Mon Sep 17 00:00:00 2001 From: Fabio1988 Date: Fri, 15 Dec 2023 12:29:58 +0100 Subject: [PATCH] fix request --- packages/server/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index d86acd9..c27e91d 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -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'; import { inspect } from 'util'; import { WebSocketServer } from 'ws'; import { @@ -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;