diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/server/debug.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/server/debug.ts b/server/controllers/api/server/debug.ts index a6e9147f3..31888e963 100644 --- a/server/controllers/api/server/debug.ts +++ b/server/controllers/api/server/debug.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import * as express from 'express' | ||
1 | import { InboxManager } from '@server/lib/activitypub/inbox-manager' | 2 | import { InboxManager } from '@server/lib/activitypub/inbox-manager' |
2 | import { RemoveDanglingResumableUploadsScheduler } from '@server/lib/schedulers/remove-dangling-resumable-uploads-scheduler' | 3 | import { RemoveDanglingResumableUploadsScheduler } from '@server/lib/schedulers/remove-dangling-resumable-uploads-scheduler' |
4 | import { Debug, SendDebugCommand } from '@shared/models' | ||
3 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 5 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' |
4 | import { SendDebugCommand } from '@shared/models' | ||
5 | import * as express from 'express' | ||
6 | import { UserRight } from '../../../../shared/models/users' | 6 | import { UserRight } from '../../../../shared/models/users' |
7 | import { authenticate, ensureUserHasRight } from '../../../middlewares' | 7 | import { authenticate, ensureUserHasRight } from '../../../middlewares' |
8 | 8 | ||
@@ -32,7 +32,7 @@ function getDebug (req: express.Request, res: express.Response) { | |||
32 | return res.json({ | 32 | return res.json({ |
33 | ip: req.ip, | 33 | ip: req.ip, |
34 | activityPubMessagesWaiting: InboxManager.Instance.getActivityPubMessagesWaiting() | 34 | activityPubMessagesWaiting: InboxManager.Instance.getActivityPubMessagesWaiting() |
35 | }) | 35 | } as Debug) |
36 | } | 36 | } |
37 | 37 | ||
38 | async function runCommand (req: express.Request, res: express.Response) { | 38 | async function runCommand (req: express.Request, res: express.Response) { |