mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 02:02:17 +00:00
fix: lint issues (#6115)
This commit is contained in:
@@ -56,7 +56,7 @@ export class UserController {
|
||||
if (!currentUser) {
|
||||
throw new InternalFlowiseError(StatusCodes.UNAUTHORIZED, UserErrorMessage.USER_NOT_FOUND)
|
||||
}
|
||||
const { id, name, oldPassword, newPassword, confirmPassword } = req.body
|
||||
const { id } = req.body
|
||||
if (currentUser.id !== id) {
|
||||
throw new InternalFlowiseError(StatusCodes.FORBIDDEN, UserErrorMessage.USER_NOT_FOUND)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user