Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Jan 22, 2025
1 parent 087f335 commit b6070a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/servers/serverTransferOwnership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export function serverTransferOwnership(Router: Router) {
authenticate({ allowBot: true }),
serverMemberVerification(),
body('password').isLength({ min: 0, max: 72 }).withMessage('Password must be between 0 and 72 characters long.').isString().withMessage('Password must be a string!').not().isEmpty().withMessage('Password is required'),
body('newOwnerUserId').isString().withMessage('newOwnerUserId must be a string.').isLength({ min: 4, max: 100 }).withMessage('newOwnerUserId must be between 4 and 100 characters long.').not().isEmpty().withMessage('newOwnerUserId is required'),

rateLimit({
name: 'server_transfer_ownership',
restrictMS: 20000,
Expand Down

0 comments on commit b6070a3

Please sign in to comment.