This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-17 22:59:11 +01:00
parent bc84404235
commit ccff90829b
33 changed files with 1882 additions and 1083 deletions

View File

@@ -44,27 +44,6 @@ const miscRouter: FastifyPluginCallback = async (fastify) => {
url: '/geo',
handler: controller.getGeo,
});
fastify.route({
method: 'GET',
url: '/insights/test',
handler: async (req, reply) => {
const projectId = req.query.projectId as string;
const job = await insightsQueue.add(
'insightsProject',
{
type: 'insightsProject',
payload: {
projectId: projectId,
date: new Date().toISOString().slice(0, 10),
},
},
{ jobId: `manual:${Date.now()}:${projectId}` },
);
return { jobId: job.id };
},
});
};
export default miscRouter;