diff --git a/apps/backend/src/routes/cards.ts b/apps/backend/src/routes/cards.ts index df3879a7..3b2e0034 100644 --- a/apps/backend/src/routes/cards.ts +++ b/apps/backend/src/routes/cards.ts @@ -4,7 +4,7 @@ import { hashIp } from '../utils/refreshToken'; import { createCardSchema ,updateCardSchema, addPlatformLinkSchema} from '../validations/card.validation'; import type { CardResponse, UpdateCardBody } from '../services/cardService'; -import type { Card } from '@devcard/shared'; +import type { Card } from '@devcard/shared/src/types.js'; import type { CardVisibility } from '@prisma/client'; import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify'; diff --git a/apps/backend/src/routes/follow.ts b/apps/backend/src/routes/follow.ts index 0461db3d..1f94a519 100644 --- a/apps/backend/src/routes/follow.ts +++ b/apps/backend/src/routes/follow.ts @@ -1,4 +1,4 @@ -import { getPlatform, getProfileUrl, getWebViewUrl } from '@devcard/shared'; +import { getPlatform, getProfileUrl, getWebViewUrl } from '@devcard/shared/src/platforms.js'; import { decrypt } from '../utils/encryption.js'; import { getErrorMessage } from '../utils/error.util.js'; diff --git a/apps/backend/src/routes/team.ts b/apps/backend/src/routes/team.ts index 29ebb003..3ee44876 100644 --- a/apps/backend/src/routes/team.ts +++ b/apps/backend/src/routes/team.ts @@ -4,7 +4,7 @@ import QRCode from 'qrcode' import {generateUniqueSlug} from '../utils/slug.js' import { createTeamScehma,inviteMembers,updateTeam } from '../validations/team.validation.js'; -import type {PlatformLink, PublicProfile} from '@devcard/shared' +import type {PlatformLink, PublicProfile} from '@devcard/shared/src/types.js' import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify'; type TeamMember = PublicProfile & { diff --git a/apps/backend/src/services/profileService.ts b/apps/backend/src/services/profileService.ts index dc97b2a4..4d300091 100644 --- a/apps/backend/src/services/profileService.ts +++ b/apps/backend/src/services/profileService.ts @@ -1,6 +1,5 @@ import type { FastifyInstance } from 'fastify' -import { getProfileUrl } from '@devcard/shared' -import type { PlatformLink } from '@devcard/shared' +import { getProfileUrl } from '@devcard/shared/src/platforms.js' import { getErrorMessage } from '../utils/error.util.js' export async function getOwnProfile(app: FastifyInstance, userId: string) { diff --git a/apps/backend/src/utils/validators.ts b/apps/backend/src/utils/validators.ts index 0492f6d4..2ec69c1c 100644 --- a/apps/backend/src/utils/validators.ts +++ b/apps/backend/src/utils/validators.ts @@ -1,4 +1,4 @@ -import { getPlatform } from '@devcard/shared'; +import { getPlatform } from '@devcard/shared/src/platforms'; import { z } from 'zod'; export const updateProfileSchema = z.object({