You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Figure out how to import this definition from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/03fddd7a3f2322433a867d9edcee561ac85d950d/types/multer/index.d.ts#L103-L124
returnquery==='config' ? res.json({}) : badRequest(res,'Queries are not supported');
502
509
}
503
510
504
511
// Not using "await" here as the middleware shouldn't be returning a Promise, as Express doesn't understand Promises natively yet and it could hide exceptions thrown
505
512
Promise.resolve()
506
513
.then(async()=>{
507
-
constresult=awaitoptions.queryHandler(query,req);
514
+
constresult=awaitqueryHandler(query,req);
508
515
509
516
if(!result){
510
517
returnquery==='config' ? res.json({}) : badRequest(res,'Query type is not supported');
@@ -544,7 +551,7 @@ const micropubExpress = function (options) {
544
551
// Not using "await" here as the middleware shouldn't be returning a Promise, as Express doesn't understand Promises natively yet and it could hide exceptions thrown
0 commit comments