From 29a7bfcc6b3381c5d9a9b6afdcd8a76bb5fd8b94 Mon Sep 17 00:00:00 2001 From: Sidney Gomes Date: Fri, 24 Jul 2026 23:29:08 -0300 Subject: [PATCH] fix: corrigir nome do campo thumbnail no update do curso no prisma --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index ba82b3e..d90405a 100644 --- a/server.ts +++ b/server.ts @@ -1542,7 +1542,7 @@ app.put('/api/admin/courses/:id', authenticateToken, requireAdmin, async (req: A data: { ...(title !== undefined && { title }), ...(description !== undefined && { description }), - ...(thumbnail && { thumbnailUrl: thumbnail }), + ...(thumbnail !== undefined && { thumbnail }), ...(category !== undefined && { category }), ...(isLocked !== undefined && { isLocked: isLocked === true || isLocked === 'true' }), ...(price !== undefined && { price: Number(price) }),