fix: corrigir nome do campo thumbnail no update do curso no prisma
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 59s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 59s
Details
This commit is contained in:
parent
714e59e8bc
commit
29a7bfcc6b
|
|
@ -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) }),
|
||||
|
|
|
|||
Loading…
Reference in New Issue