There was an error while loading. Please reload this page.
1 parent 88bee69 commit 70c58daCopy full SHA for 70c58da
1 file changed
apps/backend/src/services/cardService.ts
@@ -1,9 +1,10 @@
1
+import type { PlatformLink } from '@devcard/shared';
2
import type { Prisma } from '@prisma/client';
3
import type { FastifyInstance } from 'fastify';
4
-type CardLinkResponse = { platformLink: unknown };
5
+type CardLinkResponse = { platformLink: PlatformLink };
6
type RawCard = { id: string; title: string; isDefault: boolean; cardLinks: CardLinkResponse[] };
-type CardResponse = { id: string; title: string; isDefault: boolean; links: unknown[] };
7
+type CardResponse = { id: string; title: string; isDefault: boolean; links: PlatformLink[] };
8
9
function mapCard(card: RawCard): CardResponse {
10
return {
0 commit comments