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

chore(j-s): Remove feature flag for combo indictments #17231

Merged
merged 109 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
1e67325
Add frontend changes for selecting indictment subtypes in indictment …
oddsson Dec 4, 2024
adf5ded
Create migration
oddsson Dec 4, 2024
94e59f3
Update DB on change
oddsson Dec 4, 2024
1bfcb96
Merge branch 'main' of github.com:island-is/island.is into j-s/select…
oddsson Dec 4, 2024
9532708
Refactor
oddsson Dec 4, 2024
e5ea1e2
Refactor
oddsson Dec 4, 2024
853dea2
chore: nx format:write update dirty files
andes-it Dec 4, 2024
d0b5c60
Add feature flag
oddsson Dec 4, 2024
42e47bb
Merge branch 'j-s/select-indictment-subtype' of github.com:island-is/…
oddsson Dec 4, 2024
d31e20d
Refactor
oddsson Dec 4, 2024
026eaf6
Refactor
oddsson Dec 4, 2024
124668c
Add featur flag
oddsson Dec 5, 2024
9289780
Merge branch 'main' of github.com:island-is/island.is into j-s/select…
oddsson Dec 5, 2024
45499db
Merge branch 'main' of github.com:island-is/island.is into j-s/select…
oddsson Dec 7, 2024
6ebec56
Merge branch 'main' of github.com:island-is/island.is into j-s/select…
oddsson Dec 9, 2024
e144cdf
Merge branch 'j-s/select-indictment-subtype' of github.com:island-is/…
oddsson Dec 9, 2024
bb9bf5b
Remove console.log()
oddsson Dec 9, 2024
90d2ee7
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 9, 2024
5e20628
Checkpoint
oddsson Dec 9, 2024
4af03fa
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 9, 2024
4112929
Refactor
oddsson Dec 9, 2024
f19e818
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 9, 2024
09bc0c3
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 10, 2024
1e63b1e
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 10, 2024
c010234
Refactor
oddsson Dec 10, 2024
632e121
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 10, 2024
ecdd5f2
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 10, 2024
38acc59
Fix tests
oddsson Dec 10, 2024
6b5fa2e
Fix lint
oddsson Dec 10, 2024
e400b2c
Add hasOnlyOneItemInSubArrays to utils
oddsson Dec 10, 2024
209c06f
Add hasOnlyOneItemInSubArrays to utils
oddsson Dec 10, 2024
199283e
Strip offence when removing traffic violation
oddsson Dec 10, 2024
48d491e
Add headings
oddsson Dec 10, 2024
173a393
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 10, 2024
8120201
Fixes
oddsson Dec 11, 2024
6de9edf
Refactor
oddsson Dec 11, 2024
acd60ce
Remove all indictmentCountSubtypes on remove
oddsson Dec 11, 2024
512a011
Refactor
oddsson Dec 12, 2024
344c480
Fix lint
oddsson Dec 12, 2024
be33b29
Cleanup
oddsson Dec 12, 2024
73b5604
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 12, 2024
eed65d9
Refactor
oddsson Dec 12, 2024
eb8eaf0
Refactor
oddsson Dec 12, 2024
edf70e2
Refactor
oddsson Dec 12, 2024
0dbb8d7
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 12, 2024
47589f0
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 13, 2024
7f7ccf4
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 13, 2024
9139e5f
Remove isTrafficViolationCase checks
oddsson Dec 13, 2024
b86e4ab
Remove isTrafficViolationCase checks
oddsson Dec 13, 2024
ce9d87b
Remove isTrafficViolationCase checks
oddsson Dec 13, 2024
e6f2ccb
Remove feature flag
oddsson Dec 13, 2024
b532f1b
Remove code related to CaseFileCategory INDICTMENT
oddsson Dec 13, 2024
fd70d4a
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 13, 2024
07c8467
chore: charts update dirty files
andes-it Dec 13, 2024
382158f
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 16, 2024
d4d15b2
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 16, 2024
203f638
Rename import -- stepHelper to utils
oddsson Dec 16, 2024
290c4bf
Break down a complex ternary statement into if statemetns
oddsson Dec 16, 2024
2cc996f
Improve validation on indictment screen
oddsson Dec 16, 2024
4fd40c2
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 17, 2024
9d93668
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 17, 2024
ebabc90
Improve type safety
oddsson Dec 17, 2024
4dd6cd3
Remove unused code
oddsson Dec 17, 2024
7903f24
Refactor util
oddsson Dec 17, 2024
0927926
Cleanup state on remove traffic violation
oddsson Dec 17, 2024
b3c2681
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 17, 2024
d489b56
Improve validation
oddsson Dec 17, 2024
a983633
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 17, 2024
94a2aa0
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 17, 2024
ac1525e
Refactor validation
oddsson Dec 17, 2024
2328bea
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 17, 2024
e6f1bc5
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 18, 2024
89208e0
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 18, 2024
42e57cd
Fix imports
oddsson Dec 18, 2024
cc95172
Fix imports
oddsson Dec 18, 2024
629ba49
Remove console.log
oddsson Dec 18, 2024
3c1a7b4
Fix issue with rendering traffic violation fields
oddsson Dec 18, 2024
0a7061b
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 18, 2024
f0d558a
Fix issues with autofill
oddsson Dec 18, 2024
29098fb
Fix validation
oddsson Dec 18, 2024
fdf230e
Add tests
oddsson Dec 18, 2024
fb149c3
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 18, 2024
c5a28a5
Add tests for isTrafficViolationStepValidIndictments validation function
oddsson Dec 18, 2024
7dc1a63
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 19, 2024
22af2b7
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 19, 2024
0b7a452
Add tests
oddsson Dec 19, 2024
7ec71f6
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Dec 19, 2024
e9c8ba4
Merge branch 'j-s/multi-subtype-2' of github.com:island-is/island.is …
oddsson Dec 19, 2024
95c871d
Rename indictment pdf title
oddsson Dec 19, 2024
2d01494
Rename indictment screen validation function
oddsson Dec 19, 2024
89d49ad
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Jan 13, 2025
41afbae
Cleanup
oddsson Jan 13, 2025
a1b493e
Cleanup
oddsson Jan 13, 2025
c047fc9
Cleanup
oddsson Jan 13, 2025
3f995e9
Cleanup
oddsson Jan 13, 2025
d1a15b9
Cleanup
oddsson Jan 13, 2025
8440d9d
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Jan 13, 2025
ace2693
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Jan 14, 2025
7a4faef
Remove tests
oddsson Jan 14, 2025
3d687a3
Fix tests
oddsson Jan 14, 2025
ec2b6bc
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
oddsson Jan 16, 2025
8f8131f
Fix tests
oddsson Jan 16, 2025
3dc3098
Removes unused code
gudjong Jan 16, 2025
0475900
Removes dead code
gudjong Jan 16, 2025
0ccbff3
Removes unused code
gudjong Jan 17, 2025
9486abc
Renames client route constanst
gudjong Jan 17, 2025
ea41a71
Updates comments
gudjong Jan 17, 2025
0fe9efc
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
gudjong Jan 17, 2025
2473ac9
Merge branch 'main' of github.com:island-is/island.is into j-s/multi-…
gudjong Jan 17, 2025
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
4 changes: 2 additions & 2 deletions apps/judicial-system/api/infra/judicial-system-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const serviceSetup = (services: {
},
HIDDEN_FEATURES: {
dev: '',
staging: 'MULTIPLE_INDICTMENT_SUBTYPES',
prod: 'MULTIPLE_INDICTMENT_SUBTYPES',
staging: '',
prod: '',
},
})
.secrets({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
]),
)
},
async down(queryInterface, Sequelize) {
async down(queryInterface) {
return queryInterface.sequelize.transaction((t) =>
queryInterface.removeColumn('defendant', 'punishment_type', {
transaction: t,
Expand Down
174 changes: 0 additions & 174 deletions apps/judicial-system/backend/src/app/formatters/confirmedPdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ import {
import { PDFKitCoatOfArms } from './PDFKitCoatOfArms'

type ConfirmableCaseFileCategories =
| CaseFileCategory.INDICTMENT
| CaseFileCategory.RULING
| CaseFileCategory.COURT_RECORD

// Colors
const lightGray = rgb(0.9804, 0.9804, 0.9804)
const darkGray = rgb(0.7961, 0.7961, 0.7961)
const gold = rgb(0.6784, 0.6392, 0.451)
const white = rgb(1, 1, 1)

// Spacing
Expand All @@ -29,175 +27,6 @@ const coatOfArmsWidth = calculatePt(105)
const confirmedByHeight = calculatePt(50)
const titleX = coatOfArmsX + coatOfArmsWidth + calculatePt(8)

const createIndictmentConfirmation = async (
confirmation: Confirmation,
pdfDoc: PDFDocument,
) => {
const pages = pdfDoc.getPages()
const doc = pages[0]

const shadowHeight = calculatePt(90)
const { width, height } = doc.getSize()
const titleHeight = calculatePt(32)
const titleWidth = width - coatOfArmsWidth - 2 * coatOfArmsX
const confirmedByWidth = calculatePt(258)
const institutionWidth = confirmedByWidth + calculatePt(48)

// Draw the shadow
doc.drawRectangle({
x: pageMargin,
y: height - shadowHeight - pageMargin,
width: doc.getWidth() - 2 * pageMargin - calculatePt(16),
height: shadowHeight,
color: lightGray,
})

// Draw the box around the coat of arms
doc.drawRectangle({
x: coatOfArmsX,
y: height - shadowHeight - pageMargin + calculatePt(8),
width: coatOfArmsWidth,
height: shadowHeight,
color: rgb(1, 1, 1),
borderColor: darkGray,
borderWidth: 1,
})

PDFKitCoatOfArms(doc, height)

doc.drawRectangle({
x: coatOfArmsX + coatOfArmsWidth,
y: height - pageMargin - titleHeight + calculatePt(8),
width: titleWidth,
height: titleHeight,
color: lightGray,
borderColor: darkGray,
borderWidth: 1,
})

const timesRomanFont = await pdfDoc.embedFont(StandardFonts.TimesRoman)
const timesRomanBoldFont = await pdfDoc.embedFont(
StandardFonts.TimesRomanBold,
)
doc.drawText('Réttarvörslugátt', {
x: titleX,
y: height - pageMargin - titleHeight + calculatePt(20),
size: calculatePt(smallFontSize),
font: timesRomanBoldFont,
})

doc.drawText('Skjal samþykkt rafrænt', {
x: 158,
y: height - pageMargin - titleHeight + calculatePt(20),
size: calculatePt(smallFontSize),
font: timesRomanFont,
})

doc.drawSvgPath(
'M0.763563 11.8047H7.57201C7.85402 11.8047 8.08264 11.5761 8.08264 11.2941V5.50692C8.08264 5.22492 7.85402 4.99629 7.57201 4.99629H7.06138V3.46439C7.06138 1.86887 5.76331 0.570801 4.16779 0.570801C2.57226 0.570801 1.2742 1.86887 1.2742 3.46439V4.99629H0.763563C0.481557 4.99629 0.25293 5.22492 0.25293 5.50692V11.2941C0.25293 11.5761 0.481557 11.8047 0.763563 11.8047ZM5.61394 8.03817L4.16714 9.48496C4.06743 9.58467 3.93674 9.63455 3.80609 9.63455C3.67543 9.63455 3.54471 9.58467 3.44504 9.48496L2.72164 8.76157C2.52222 8.56215 2.52222 8.23888 2.72164 8.03943C2.92102 7.84001 3.24436 7.84001 3.44378 8.03943L3.80612 8.40174L4.89187 7.31603C5.09125 7.11661 5.41458 7.11661 5.614 7.31603C5.81339 7.51549 5.81339 7.83875 5.61394 8.03817ZM2.29546 3.46439C2.29546 2.43199 3.13539 1.59207 4.16779 1.59207C5.20019 1.59207 6.04011 2.43199 6.04011 3.46439V4.99629H2.29546V3.46439Z',
{
color: gold,
x: width - 38,
y: height - pageMargin - titleHeight + calculatePt(33),
},
)

// Draw the "Confirmed by" box
doc.drawRectangle({
x: coatOfArmsX + coatOfArmsWidth,
y: height - pageMargin - titleHeight - confirmedByHeight,
width: confirmedByWidth,
height: shadowHeight - titleHeight,
color: white,
borderColor: darkGray,
borderWidth: 1,
})

doc.drawText('Staðfestingaraðili', {
x: titleX,
y: height - pageMargin - titleHeight - calculatePt(15),
size: calculatePt(smallFontSize),
font: timesRomanBoldFont,
})

if (confirmation?.actor) {
timesRomanFont.widthOfTextAtSize(
`${confirmation.actor}${
confirmation.title ? `, ${lowercase(confirmation.title)}` : ''
}`,
calculatePt(smallFontSize),
)
drawTextWithEllipsisPDFKit(
doc,
`${confirmation.actor}${
confirmation.title ? `, ${lowercase(confirmation.title)}` : ''
}`,
{ type: timesRomanFont, size: calculatePt(smallFontSize) },
titleX,
height - pageMargin - titleHeight - calculatePt(29),
confirmedByWidth - 16,
)
}

// Draw the "Institution" box
doc.drawRectangle({
x: coatOfArmsX + coatOfArmsWidth + confirmedByWidth,
y: height - pageMargin - titleHeight - confirmedByHeight,
width: institutionWidth,
height: shadowHeight - titleHeight,
color: white,
borderColor: darkGray,
borderWidth: 1,
})

doc.drawText('Embætti', {
x: titleX + confirmedByWidth,
y: height - pageMargin - titleHeight - calculatePt(15),
size: calculatePt(smallFontSize),
font: timesRomanBoldFont,
})

if (confirmation?.institution) {
doc.drawText(confirmation.institution, {
x: titleX + confirmedByWidth,
y: height - pageMargin - titleHeight - calculatePt(29),
font: timesRomanFont,
size: calculatePt(smallFontSize),
})
}

// Draw the "Indictment date" box
doc.drawRectangle({
x: width - 90,
y: height - pageMargin - titleHeight - confirmedByHeight,
width: 70,
height: shadowHeight - titleHeight,
color: white,
borderColor: darkGray,
borderWidth: 1,
})

doc.drawText('Útgáfa ákæru', {
x: width - 72,
y: height - pageMargin - titleHeight - calculatePt(15),
size: calculatePt(smallFontSize),
font: timesRomanBoldFont,
})

if (confirmation?.date) {
const dateFormattedDate = formatDate(confirmation.date)

if (dateFormattedDate) {
doc.drawText(dateFormattedDate, {
x: width - 62,
y: height - pageMargin - titleHeight - calculatePt(29),
font: timesRomanFont,
size: calculatePt(smallFontSize),
})
}
}
}

const createRulingConfirmation = async (
confirmation: Confirmation,
pdfDoc: PDFDocument,
Expand Down Expand Up @@ -443,9 +272,6 @@ export const createConfirmedPdf = async (
const pdfDoc = await PDFDocument.load(pdf)

switch (fileType) {
case CaseFileCategory.INDICTMENT:
await createIndictmentConfirmation(confirmation, pdfDoc)
break
case CaseFileCategory.RULING: {
await createRulingConfirmation(confirmation, pdfDoc)
break
Expand Down
48 changes: 12 additions & 36 deletions apps/judicial-system/backend/src/app/modules/case/case.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import {
isIndictmentCase,
isInvestigationCase,
isRequestCase,
isTrafficViolationCase,
notificationTypes,
StringType,
stringTypes,
Expand Down Expand Up @@ -388,7 +387,6 @@ export const include: Includeable[] = [
state: { [Op.not]: CaseFileState.DELETED },
category: {
[Op.in]: [
CaseFileCategory.INDICTMENT,
CaseFileCategory.COURT_RECORD,
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
Expand Down Expand Up @@ -819,22 +817,13 @@ export class CaseService {
}),
)

const caseFilesCategories = isTrafficViolationCase(theCase)
? [
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
CaseFileCategory.CASE_FILE,
CaseFileCategory.PROSECUTOR_CASE_FILE,
CaseFileCategory.DEFENDANT_CASE_FILE,
]
: [
CaseFileCategory.INDICTMENT,
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
CaseFileCategory.CASE_FILE,
CaseFileCategory.PROSECUTOR_CASE_FILE,
CaseFileCategory.DEFENDANT_CASE_FILE,
]
const caseFilesCategories = [
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
CaseFileCategory.CASE_FILE,
CaseFileCategory.PROSECUTOR_CASE_FILE,
CaseFileCategory.DEFENDANT_CASE_FILE,
]

const deliverCaseFileToCourtMessages =
theCase.caseFiles
Expand All @@ -856,13 +845,11 @@ export class CaseService {
deliverCaseFileToCourtMessages,
)

if (isTrafficViolationCase(theCase)) {
messages.push({
type: MessageType.DELIVERY_TO_COURT_INDICTMENT,
user,
caseId: theCase.id,
})
}
messages.push({
type: MessageType.DELIVERY_TO_COURT_INDICTMENT,
user,
caseId: theCase.id,
})

if (theCase.state === CaseState.WAITING_FOR_CANCELLATION) {
messages.push({
Expand Down Expand Up @@ -1854,10 +1841,6 @@ export class CaseService {
): Promise<Case | undefined> {
const receivingCase =
update.courtCaseNumber && theCase.state === CaseState.SUBMITTED
const returningIndictmentCase =
isIndictmentCase(theCase.type) &&
update.state === CaseState.DRAFT &&
theCase.state === CaseState.RECEIVED
const completingIndictmentCaseWithoutRuling =
isIndictmentCase(theCase.type) &&
update.state === CaseState.COMPLETED &&
Expand Down Expand Up @@ -1916,13 +1899,6 @@ export class CaseService {
await this.fileService.resetCaseFileStates(theCase.id, transaction)
}

if (returningIndictmentCase) {
await this.fileService.resetIndictmentCaseFileHashes(
theCase.id,
transaction,
)
}

// Remove uploaded ruling files if an indictment case is completed without a ruling
if (completingIndictmentCaseWithoutRuling && theCase.caseFiles) {
await Promise.all(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
isProsecutionUser,
isRequestCase,
isRestrictionCase,
isTrafficViolationCase,
NotificationType,
restrictionCases,
type User as TUser,
Expand Down Expand Up @@ -1051,39 +1050,14 @@ export class InternalCaseService {
user: TUser,
): Promise<DeliverResponse> {
try {
let policeDocuments: PoliceDocument[]
const file = await this.pdfService.getIndictmentPdf(theCase)

if (isTrafficViolationCase(theCase)) {
const file = await this.pdfService.getIndictmentPdf(theCase)

policeDocuments = [
{
type: PoliceDocumentType.RVAS,
courtDocument: Base64.btoa(file.toString('binary')),
},
]
} else {
policeDocuments = await Promise.all(
theCase.caseFiles
?.filter(
(caseFile) =>
caseFile.category === CaseFileCategory.INDICTMENT &&
caseFile.key,
)
.map(async (caseFile) => {
// TODO: Tolerate failure, but log error
const file = await this.fileService.getCaseFileFromS3(
theCase,
caseFile,
)

return {
type: PoliceDocumentType.RVAS,
courtDocument: Base64.btoa(file.toString('binary')),
}
}) ?? [],
)
}
const policeDocuments = [
{
type: PoliceDocumentType.RVAS,
courtDocument: Base64.btoa(file.toString('binary')),
},
]

const delivered = await this.deliverCaseToPoliceWithFiles(
theCase,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ export const include: Includeable[] = [
CaseFileCategory.APPEAL_RULING,
CaseFileCategory.APPEAL_COURT_RECORD,
CaseFileCategory.COURT_RECORD,
CaseFileCategory.INDICTMENT,
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
CaseFileCategory.CASE_FILE,
Expand Down Expand Up @@ -277,7 +276,6 @@ export const include: Includeable[] = [
state: { [Op.not]: CaseFileState.DELETED },
category: {
[Op.in]: [
CaseFileCategory.INDICTMENT,
CaseFileCategory.COURT_RECORD,
CaseFileCategory.CRIMINAL_RECORD,
CaseFileCategory.COST_BREAKDOWN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export class Case extends Model {
crimeScenes?: CrimeSceneMap

/**********
* The introduction to a traffic violation case
* The introduction to a indictment case
**********/
@Column({ type: DataType.TEXT, allowNull: true })
@ApiPropertyOptional({ type: String })
Expand Down Expand Up @@ -1029,7 +1029,6 @@ export class Case extends Model {

/**********
* The md5 hash of the confirmed generated indictment
* Only used for traffic violation cases
**********/
@Column({ type: DataType.STRING, allowNull: true })
@ApiPropertyOptional({ type: String })
Expand Down
Loading
Loading