refactor: update all

This commit is contained in:
openstappsbot
2021-09-27 13:07:35 +00:00
committed by Rainer Killinger
parent 8cb4ee12a6
commit 26c14fa7e9
6 changed files with 345 additions and 574 deletions

View File

@@ -208,7 +208,7 @@ export abstract class Plugin {
* @param req An express Request from the backend
* @param res An express Response to the backend for you to send back data
*/
protected abstract async onRouteInvoke(req: express.Request, res: express.Response): Promise<void>;
protected abstract onRouteInvoke(req: express.Request, res: express.Response): Promise<void>;
/**
* Closes the server
@@ -222,9 +222,9 @@ export abstract class Plugin {
/* istanbul ignore next */
if (typeof err !== 'undefined') {
/* istanbul ignore next */
return reject(err);
reject(err);
}
resolve();
resolve(undefined);
});
});
}