diff --git a/shared/src/business/entities/cases/PublicDocketEntry.test.ts b/shared/src/business/entities/cases/PublicDocketEntry.test.ts index e9608523d16..30d624a9607 100644 --- a/shared/src/business/entities/cases/PublicDocketEntry.test.ts +++ b/shared/src/business/entities/cases/PublicDocketEntry.test.ts @@ -4,6 +4,7 @@ import { PublicDocketEntry } from './PublicDocketEntry'; describe('PublicDocketEntry', () => { it('should only have expected fields', () => { const entity = new PublicDocketEntry({ + action: 'some action', additionalInfo: 'something', additionalInfo2: 'something else', anotherThing: false, @@ -44,6 +45,7 @@ describe('PublicDocketEntry', () => { }); expect(entity.toRawObject()).toEqual({ + action: 'some action', additionalInfo: 'something', additionalInfo2: 'something else', attachments: true, diff --git a/shared/src/business/entities/cases/PublicDocketEntry.ts b/shared/src/business/entities/cases/PublicDocketEntry.ts index aa23c7f45b0..3b5a19698fd 100644 --- a/shared/src/business/entities/cases/PublicDocketEntry.ts +++ b/shared/src/business/entities/cases/PublicDocketEntry.ts @@ -8,6 +8,7 @@ import { JoiValidationEntity } from '@shared/business/entities/JoiValidationEnti import joi from 'joi'; export class PublicDocketEntry extends JoiValidationEntity { + public action?: string; public additionalInfo?: string; public additionalInfo2?: string; public attachments?: boolean; @@ -45,6 +46,7 @@ export class PublicDocketEntry extends JoiValidationEntity { constructor(rawProps) { super('PublicDocketEntry'); + this.action = rawProps.action; this.additionalInfo = rawProps.additionalInfo; this.additionalInfo2 = rawProps.additionalInfo2; this.attachments = rawProps.attachments;