Skip to content

Commit e29efc4

Browse files
authored
Update cards.ts
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
1 parent 851def8 commit e29efc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/src/routes/cards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { handleDbError } from '../utils/error.util.js';
33
import { hashIp } from '../utils/refreshToken';
44
import { createCardSchema ,updateCardSchema, addPlatformLinkSchema} from '../validations/card.validation';
55

6-
import type { CardResponse, UpdateCardBody } from '../services/cardService';
6+
import type { CardResponse, UpdateCardBody,UpdatedCardResponse } from '../services/cardService';
77
import type { Card } from '@devcard/shared/src/types.js';
88
import type { CardVisibility } from '@prisma/client';
99
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
@@ -93,7 +93,7 @@ export async function cardRoutes(app: FastifyInstance): Promise<void> {
9393

9494
// ─── Update Card ───
9595

96-
app.put<{ Params: CardParams; Body: UpdateCardBody }>('/:id', {preHandler: [(req, reply) => app.authenticate(req, reply)] }, async (request, reply): Promise<CardResponse> => {
96+
app.put<{ Params: CardParams; Body: UpdateCardBody }>('/:id', {preHandler: [(req, reply) => app.authenticate(req, reply)] }, async (request, reply): Promise<UpdatedCardResponse> => {
9797
const userId = request.user.id;
9898
const { id } = request.params;
9999

0 commit comments

Comments
 (0)