diff --git a/app/server/lib/DocApi.ts b/app/server/lib/DocApi.ts index c0eff7ad..b3d8d238 100644 --- a/app/server/lib/DocApi.ts +++ b/app/server/lib/DocApi.ts @@ -42,7 +42,7 @@ type WithDocHandler = (activeDoc: ActiveDoc, req: RequestWithLogin, resp: Respon function apiThrottle(usage: Map, callback: (req: RequestWithLogin, resp: Response, - next: NextFunction) => Promise): RequestHandler { + next: NextFunction) => void|Promise): RequestHandler { return async (req, res, next) => { const docId = getDocId(req); try {