File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export class LanguageEngagement extends Engagement {
183
183
@Field ( )
184
184
readonly paratextRegistryId : SecuredString ;
185
185
186
- readonly pnp : Secured < LinkTo < 'File' > > ;
186
+ readonly pnp : Secured < LinkTo < 'File' > | null > ;
187
187
188
188
@Field ( )
189
189
readonly historicGoal : SecuredString ;
@@ -219,7 +219,7 @@ export class InternshipEngagement extends Engagement {
219
219
@DbLabel ( 'ProductMethodology' )
220
220
readonly methodologies : SecuredMethodologies ;
221
221
222
- readonly growthPlan : Secured < LinkTo < 'File' > > ;
222
+ readonly growthPlan : Secured < LinkTo < 'File' > | null > ;
223
223
}
224
224
225
225
export const engagementRange = ( engagement : UnsecuredDto < Engagement > ) =>
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ export class FileService {
524
524
async updateDefinedFile <
525
525
Input extends CreateDefinedFileVersionInput | undefined ,
526
526
> (
527
- file : Secured < FileId | LinkTo < 'File' > > ,
527
+ file : Secured < FileId | LinkTo < 'File' > | null > ,
528
528
field : string ,
529
529
input : Input ,
530
530
session : Session ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class ExtractProductsFromPnpHandler
28
28
? event . engagement
29
29
: event . updated ;
30
30
const { pnp : hasPnpInput , methodology } = event . input ;
31
- if ( ! hasPnpInput || ! methodology ) {
31
+ if ( ! engagement . pnp || ! hasPnpInput || ! methodology ) {
32
32
return ;
33
33
}
34
34
const availableSteps = getAvailableSteps ( { methodology } ) ;
You can’t perform that action at this time.
0 commit comments