mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
refactor: use strict typing
This commit is contained in:
committed by
Carlos Valente
parent
4ed38340e0
commit
178640bfc4
@@ -36,8 +36,9 @@ integrationRouter.get('/*', (req: Request, res: Response) => {
|
||||
try {
|
||||
const actionArray = action.split('/');
|
||||
const query = isEmptyObject(req.query) ? undefined : (req.query as object);
|
||||
let payload = {};
|
||||
let payload: unknown = {};
|
||||
if (actionArray.length > 1) {
|
||||
// @ts-expect-error -- we decide to give up on typing here
|
||||
action = actionArray.shift();
|
||||
payload = integrationPayloadFromPath(actionArray, query);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user