Skip to content

Commit a6b5bf5

Browse files
authored
Merge pull request #5 from Klimatbyran/copilot/sub-pr-4
Remove type assertions and use AddJobBody type properly
2 parents c9d7282 + 1b6d5ea commit a6b5bf5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/routes/readQueues.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ export async function readQueuesRoute(app: FastifyInstance) {
8888
if (!resolvedName) {
8989
return reply.status(400).send({ error: `Unknown queue '${name}'. Valid queues: ${Object.values(QUEUE_NAMES).join(', ')}` });
9090
}
91-
const { urls, autoApprove } = request.body as any;
92-
const forceReindex = typeof (request.body as any).forceReindex === 'boolean'
93-
? (request.body as any).forceReindex
94-
: undefined;
91+
const { urls, autoApprove, forceReindex } = request.body;
9592
// Log enqueue request (sanitized)
9693
app.log.info(
9794
{

0 commit comments

Comments
 (0)