diff options
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r-- | server/controllers/api/users/my-blocklist.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/users/my-blocklist.ts b/server/controllers/api/users/my-blocklist.ts index 95a4105ec..9575eab46 100644 --- a/server/controllers/api/users/my-blocklist.ts +++ b/server/controllers/api/users/my-blocklist.ts | |||
@@ -12,8 +12,8 @@ import { | |||
12 | } from '../../../middlewares' | 12 | } from '../../../middlewares' |
13 | import { | 13 | import { |
14 | accountsBlocklistSortValidator, | 14 | accountsBlocklistSortValidator, |
15 | blockAccountByAccountValidator, | 15 | blockAccountValidator, |
16 | blockServerByAccountValidator, | 16 | blockServerValidator, |
17 | serversBlocklistSortValidator, | 17 | serversBlocklistSortValidator, |
18 | unblockServerByAccountValidator | 18 | unblockServerByAccountValidator |
19 | } from '../../../middlewares/validators' | 19 | } from '../../../middlewares/validators' |
@@ -37,7 +37,7 @@ myBlocklistRouter.get('/me/blocklist/accounts', | |||
37 | 37 | ||
38 | myBlocklistRouter.post('/me/blocklist/accounts', | 38 | myBlocklistRouter.post('/me/blocklist/accounts', |
39 | authenticate, | 39 | authenticate, |
40 | asyncMiddleware(blockAccountByAccountValidator), | 40 | asyncMiddleware(blockAccountValidator), |
41 | asyncRetryTransactionMiddleware(blockAccount) | 41 | asyncRetryTransactionMiddleware(blockAccount) |
42 | ) | 42 | ) |
43 | 43 | ||
@@ -58,7 +58,7 @@ myBlocklistRouter.get('/me/blocklist/servers', | |||
58 | 58 | ||
59 | myBlocklistRouter.post('/me/blocklist/servers', | 59 | myBlocklistRouter.post('/me/blocklist/servers', |
60 | authenticate, | 60 | authenticate, |
61 | asyncMiddleware(blockServerByAccountValidator), | 61 | asyncMiddleware(blockServerValidator), |
62 | asyncRetryTransactionMiddleware(blockServer) | 62 | asyncRetryTransactionMiddleware(blockServer) |
63 | ) | 63 | ) |
64 | 64 | ||