Skip to content

Commit

Permalink
fix: hopefully no more crashes, also removed reihung v2 api (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor authored Dec 22, 2021
1 parent 0a0c864 commit 0a9b81e
Show file tree
Hide file tree
Showing 11 changed files with 159 additions and 1,675 deletions.
63 changes: 0 additions & 63 deletions packages/server/API/controller/Reihung/__tests__/v2.test.ts

This file was deleted.

8 changes: 4 additions & 4 deletions packages/server/API/controller/Reihung/monitor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { coachSequenceMonitoring } from 'server/coachSequence/monitoring';
import { Controller, Get, Hidden, Res, Route } from 'tsoa';
import { wagenReihungMonitoring } from 'server/Reihung';
import type { Formation } from 'types/reihung';
import type { CoachSequenceInformation } from 'types/coachSequence';
import type { TsoaResponse } from 'tsoa';

@Route('/reihung/monitoring')
Expand All @@ -9,8 +9,8 @@ export class ReihungMonitoringController extends Controller {
@Hidden()
async monitoring(
@Res() notFoundResponse: TsoaResponse<404, void>,
): Promise<Formation> {
const reihung = await wagenReihungMonitoring();
): Promise<CoachSequenceInformation> {
const reihung = await coachSequenceMonitoring();

if (!reihung) {
return notFoundResponse(404);
Expand Down
29 changes: 0 additions & 29 deletions packages/server/API/controller/Reihung/v2.ts

This file was deleted.

217 changes: 15 additions & 202 deletions packages/server/API/routes.ts

Large diffs are not rendered by default.

239 changes: 0 additions & 239 deletions packages/server/Reihung/OEBBToDB.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/server/Reihung/getBR.ts

This file was deleted.

Loading

0 comments on commit 0a9b81e

Please sign in to comment.