Skip to content

Commit afdbb88

Browse files
authored
fix(backend): Typecheck issue (#624)
1 parent 7ab1a99 commit afdbb88

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

apps/backend/src/routes/cards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { hashIp } from '../utils/refreshToken';
44
import { createCardSchema ,updateCardSchema, addPlatformLinkSchema} from '../validations/card.validation';
55

66
import type { CardResponse, UpdateCardBody } from '../services/cardService';
7-
import type { Card } from '@devcard/shared';
7+
import type { Card } from '@devcard/shared/src/types.js';
88
import type { CardVisibility } from '@prisma/client';
99
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
1010

apps/backend/src/routes/follow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getPlatform, getProfileUrl, getWebViewUrl } from '@devcard/shared';
1+
import { getPlatform, getProfileUrl, getWebViewUrl } from '@devcard/shared/src/platforms.js';
22

33
import { decrypt } from '../utils/encryption.js';
44
import { getErrorMessage } from '../utils/error.util.js';

apps/backend/src/routes/team.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import QRCode from 'qrcode'
44
import {generateUniqueSlug} from '../utils/slug.js'
55
import { createTeamScehma,inviteMembers,updateTeam } from '../validations/team.validation.js';
66

7-
import type {PlatformLink, PublicProfile} from '@devcard/shared'
7+
import type {PlatformLink, PublicProfile} from '@devcard/shared/src/types.js'
88
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
99

1010
type TeamMember = PublicProfile & {

apps/backend/src/services/profileService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { FastifyInstance } from 'fastify'
2-
import { getProfileUrl } from '@devcard/shared'
3-
import type { PlatformLink } from '@devcard/shared'
2+
import { getProfileUrl } from '@devcard/shared/src/platforms.js'
43
import { getErrorMessage } from '../utils/error.util.js'
54

65
export async function getOwnProfile(app: FastifyInstance, userId: string) {

apps/backend/src/utils/validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getPlatform } from '@devcard/shared';
1+
import { getPlatform } from '@devcard/shared/src/platforms';
22
import { z } from 'zod';
33

44
export const updateProfileSchema = z.object({

0 commit comments

Comments
 (0)