CognxSafeTrack commited on
Commit ·
b85c749
1
Parent(s): df5c8fa
fix: resolve remaining TS overload errors in index and internal routes
Browse files
apps/api/src/routes/internal.ts
CHANGED
|
@@ -35,7 +35,6 @@ export async function internalRoutes(fastify: FastifyInstance) {
|
|
| 35 |
serverAdapter.setBasePath('/v1/internal/queues');
|
| 36 |
fastify.register(serverAdapter.registerPlugin(), {
|
| 37 |
prefix: '/v1/internal/queues',
|
| 38 |
-
basePath: '/v1/internal/queues',
|
| 39 |
config: { requireAuth: true }
|
| 40 |
});
|
| 41 |
|
|
|
|
| 35 |
serverAdapter.setBasePath('/v1/internal/queues');
|
| 36 |
fastify.register(serverAdapter.registerPlugin(), {
|
| 37 |
prefix: '/v1/internal/queues',
|
|
|
|
| 38 |
config: { requireAuth: true }
|
| 39 |
});
|
| 40 |
|
apps/api/src/types/fastify.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PrismaClient } from '@repo/database';
|
|
| 4 |
declare module 'fastify' {
|
| 5 |
interface FastifyInstance {
|
| 6 |
jwt: any;
|
| 7 |
-
prisma:
|
| 8 |
}
|
| 9 |
|
| 10 |
interface FastifyRequest {
|
|
|
|
| 4 |
declare module 'fastify' {
|
| 5 |
interface FastifyInstance {
|
| 6 |
jwt: any;
|
| 7 |
+
prisma: any; // Using any here because the extended Prisma client has a complex dynamic type
|
| 8 |
}
|
| 9 |
|
| 10 |
interface FastifyRequest {
|