mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Fix typings in DocApi causing a build failure in core.
Test Plan: Core test now passes. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2675
This commit is contained in:
parent
9a7a42bc59
commit
840f46d051
@ -42,7 +42,7 @@ type WithDocHandler = (activeDoc: ActiveDoc, req: RequestWithLogin, resp: Respon
|
||||
function apiThrottle(usage: Map<string, number>,
|
||||
callback: (req: RequestWithLogin,
|
||||
resp: Response,
|
||||
next: NextFunction) => Promise<void>): RequestHandler {
|
||||
next: NextFunction) => void|Promise<void>): RequestHandler {
|
||||
return async (req, res, next) => {
|
||||
const docId = getDocId(req);
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user