Skip to content

fixing ts errors

fixing ts errors #4076

Triggered via push November 12, 2024 11:52
Status Failure
Total duration 1m 9s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 7 warnings
typescript: server/h5p/get-h5p-router.ts#L183
Argument of type '(req: e.Request<...> | Request<...>, res: Response<...> | e.Response<...>) => Promise<...>' is not assignable to parameter of type 'PromiseRequestHandler'.
typescript: server/h5p/get-h5p-router.ts#L254
Argument of type '(req: e.Request<...> | Request<...>, res: Response<...> | e.Response<...>) => Promise<...>' is not assignable to parameter of type 'PromiseRequestHandler'.
typescript
Process completed with exit code 2.
lint: server/controllers/analytic.ts#L281
Replace `where:·{id:·data.sessionId}` with `·where:·{·id:·data.sessionId·}·`
lint: server/controllers/analytic.ts#L282
Replace `id:·data.userId` with `·id:·data.userId·`
lint: server/controllers/analytic.ts#L334
Replace `id:·data.sessionId},·{duration:·data.params?.duration` with `·id:·data.sessionId·},·{·duration:·data.params?.duration·`
lint: server/h5p/get-h5p-router.ts#L223
Replace `id:·contentId,·metadata` with `·id:·contentId,·metadata·`
lint: server/h5p/get-h5p-router.ts#L230
Replace `contentId,·metadata` with `·contentId,·metadata·`
lint: server/h5p/get-h5p-router.ts#L241
Replace `id:·contentId,·metadata` with `·id:·contentId,·metadata·`
lint: server/h5p/get-h5p-router.ts#L248
Replace `contentId,·metadata` with `·contentId,·metadata·`
lint
Process completed with exit code 1.
unit-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
unit-test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
typescript
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
typescript
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint: server/middlewares/authenticate.ts#L1
'RequestHandler' is defined but never used