We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 940354b commit 6418c8aCopy full SHA for 6418c8a
1 file changed
apps/backend/src/routes/cards.ts
@@ -97,6 +97,7 @@ export async function cardRoutes(app: FastifyInstance): Promise<void> {
97
if (!parsed.success) {return reply.status(400).send({ error: 'Validation failed', details: parsed.error.flatten() })}
98
const updated = await cardService.updateCard(app, userId, id, parsed.data)
99
if (!updated) {return reply.status(404).send({ error: 'Card not found' })}
100
+ console.log(updated)
101
return updated
102
} catch (error: any) {
103
if (error?.code === 'OWNERSHIP') {return reply.status(403).send({ error: 'One or more links do not belong to your account' })}
0 commit comments