From 0c6c250b333c14bc2b5382460f1a36865738b498 Mon Sep 17 00:00:00 2001 From: azdak Date: Tue, 19 Nov 2024 20:14:01 -0600 Subject: [PATCH] More pollOutstandingScans testing --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 6024651..d05fce7 100644 --- a/src/app.ts +++ b/src/app.ts @@ -3,7 +3,7 @@ import { addPages, getScan, addProperties, addReports, addResults, addScans, del import { CognitoJwtVerifier } from 'aws-jwt-verify'; import { db } from './utils'; import { suggestIssue } from './routes/suggestIssue'; -import { pollOutstandingScans } from './internal'; +import { pollOutstandingScans } from 'internal/pollOutstandingScans' export const fastify = Fastify(); const cognitoJwtVerifier = CognitoJwtVerifier.create({ @@ -72,7 +72,7 @@ fastify.post('/track/user', {}, async (request, reply) => trackUser({ request, r fastify.post('/ai/suggest-issue', {}, async (request, reply) => suggestIssue({ request, reply })); // TESTING requests -fastify.post('/testing/pollOutstandingScans', {}, (request, reply) => pollOutstandingScans({ request, reply })); +fastify.post('/testing/pollOutstandingScans', {}, async (request, reply) => pollOutstandingScans({ request, reply })); fastify.listen({ port: 3000 }, (err) => { console.log(`Server listening on ${fastify.server.address().port}`)