(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>,
reply: FastifyReply
)
| 691 | } |
| 692 | |
| 693 | export async function gscQueries( |
| 694 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>, |
| 695 | reply: FastifyReply |
| 696 | ) { |
| 697 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 698 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 699 | return reply.send(await gscGetTopQueriesCore({ projectId, startDate, endDate, limit: req.query.limit })); |
| 700 | } |
| 701 | |
| 702 | export const zGscQueryDetailsQuery = zDateRange.extend({ query: z.string() }); |
| 703 |
nothing calls this directly
no test coverage detected