Skip to content

Commit 17f0f59

Browse files
CarsonFbryanjnelson
andcommitted
Fix engagement fields to be nullable types where applicable
Co-authored-by: Bryan Nelson <[email protected]>
1 parent e57b10d commit 17f0f59

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/engagement/dto/engagement.dto.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import {
1414
Secured,
1515
SecuredBoolean,
1616
SecuredDateNullable,
17-
SecuredDateTime,
17+
SecuredDateTimeNullable,
1818
SecuredProps,
1919
SecuredRichTextNullable,
20-
SecuredString,
20+
SecuredStringNullable,
2121
Sensitivity,
2222
SensitivityField,
2323
UnsecuredDto,
@@ -117,17 +117,17 @@ class Engagement extends Interfaces {
117117

118118
@Field()
119119
// Convert from date to datetime at migration
120-
readonly lastSuspendedAt: SecuredDateTime;
120+
readonly lastSuspendedAt: SecuredDateTimeNullable;
121121

122122
@Field()
123123
// Convert from date to datetime at migration
124-
readonly lastReactivatedAt: SecuredDateTime;
124+
readonly lastReactivatedAt: SecuredDateTimeNullable;
125125

126126
@Field({
127127
description: 'The last time the engagement status was modified',
128128
})
129129
// Convert from last terminated/completed at migration
130-
readonly statusModifiedAt: SecuredDateTime;
130+
readonly statusModifiedAt: SecuredDateTimeNullable;
131131

132132
@DateTimeField()
133133
readonly modifiedAt: DateTime;
@@ -181,12 +181,12 @@ export class LanguageEngagement extends Engagement {
181181
readonly sentPrintingDate: SecuredDateNullable;
182182

183183
@Field()
184-
readonly paratextRegistryId: SecuredString;
184+
readonly paratextRegistryId: SecuredStringNullable;
185185

186186
readonly pnp: Secured<LinkTo<'File'> | null>;
187187

188188
@Field()
189-
readonly historicGoal: SecuredString;
189+
readonly historicGoal: SecuredStringNullable;
190190
}
191191

192192
@RegisterResource({ db: e.InternshipEngagement })

0 commit comments

Comments
 (0)