asyncRetryTransactionMiddleware,
authenticate,
paginationValidator,
- serverGetValidator,
setDefaultPagination,
setDefaultSort,
unblockAccountByAccountValidator
} from '../../../middlewares'
import {
accountsBlocklistSortValidator,
- blockAccountByAccountValidator,
+ blockAccountValidator,
+ blockServerValidator,
serversBlocklistSortValidator,
unblockServerByAccountValidator
} from '../../../middlewares/validators'
myBlocklistRouter.post('/me/blocklist/accounts',
authenticate,
- asyncMiddleware(blockAccountByAccountValidator),
+ asyncMiddleware(blockAccountValidator),
asyncRetryTransactionMiddleware(blockAccount)
)
myBlocklistRouter.post('/me/blocklist/servers',
authenticate,
- asyncMiddleware(serverGetValidator),
+ asyncMiddleware(blockServerValidator),
asyncRetryTransactionMiddleware(blockServer)
)