fix: corrigir nome do campo thumbnail no update do curso no prisma
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 59s Details

This commit is contained in:
Sidney Gomes 2026-07-24 23:29:08 -03:00
parent 714e59e8bc
commit 29a7bfcc6b
1 changed files with 1 additions and 1 deletions

View File

@ -1542,7 +1542,7 @@ app.put('/api/admin/courses/:id', authenticateToken, requireAdmin, async (req: A
data: { data: {
...(title !== undefined && { title }), ...(title !== undefined && { title }),
...(description !== undefined && { description }), ...(description !== undefined && { description }),
...(thumbnail && { thumbnailUrl: thumbnail }), ...(thumbnail !== undefined && { thumbnail }),
...(category !== undefined && { category }), ...(category !== undefined && { category }),
...(isLocked !== undefined && { isLocked: isLocked === true || isLocked === 'true' }), ...(isLocked !== undefined && { isLocked: isLocked === true || isLocked === 'true' }),
...(price !== undefined && { price: Number(price) }), ...(price !== undefined && { price: Number(price) }),