Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map 1625 uof revert code to update existing reports #727

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions server/routes/adhocReportActions/addhocActionController.ts

This file was deleted.

159 changes: 0 additions & 159 deletions server/routes/adhocReportActions/adhocActionController.test.ts

This file was deleted.

17 changes: 0 additions & 17 deletions server/routes/adhocReportActions/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions server/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import flash from 'connect-flash'
import creatingReportsRoutes from './creatingReports'
import maintainingReportsRoutes from './maintainingReports'
import viewingReportsRoutes from './viewingReports'
import adhocReportActionRoutes from './adhocReportActions'

import apiRoutes from './api'
import csrf from '../middleware/csrfMiddleware'

Expand All @@ -24,7 +22,6 @@ export default function Index(authenticationMiddleware: Handler, services: Servi
router.use(creatingReportsRoutes(services))
router.use(maintainingReportsRoutes(services))
router.use(viewingReportsRoutes(services))
router.use(adhocReportActionRoutes(services))

router.use('/api/', apiRoutes(authenticationMiddleware, services))
return router
Expand Down
9 changes: 0 additions & 9 deletions server/services/reportService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ export default class ReportService {
return report
}

async getReportUsingReportIdOnly(reportId: number): Promise<Report> {
const report = await this.incidentClient.getReportForReviewer(reportId)

if (!report) {
throw new Error(`Report does not exist: ${reportId}`)
}
return report
}

async getAnonReportSummary(token: string, statementId: number): Promise<AnonReportSummaryWithPrison | undefined> {
const report = await this.incidentClient.getAnonReportSummary(statementId)
if (!report) {
Expand Down
Loading