Skip to content

Commit

Permalink
More pollOutstandingScans testing
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Nov 20, 2024
1 parent f61d3a0 commit 0c6c250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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}`)
Expand Down

0 comments on commit 0c6c250

Please sign in to comment.