File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import {
18
18
import { type SetDbType } from '~/core/database' ;
19
19
import { type SetChangeType } from '~/core/database/changes' ;
20
20
import { e } from '~/core/gel' ;
21
- import { RegisterResource } from '~/core/resources' ;
21
+ import { type LinkTo , RegisterResource } from '~/core/resources' ;
22
22
import { type DbScriptureReferences } from '../../scripture' ;
23
23
import {
24
24
type ScriptureRangeInput ,
@@ -55,8 +55,8 @@ export class Product extends Producible {
55
55
static readonly Parent = ( ) =>
56
56
import ( '../../engagement/dto' ) . then ( ( m ) => m . LanguageEngagement ) ;
57
57
58
- readonly engagement : ID ;
59
- readonly project : ID ;
58
+ readonly engagement : LinkTo < 'LanguageEngagement' > ;
59
+ readonly project : LinkTo < 'Project' > ;
60
60
61
61
@Field ( )
62
62
@DbLabel ( 'ProductMedium' )
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ export class ProductResolver {
75
75
@Info ( Fields , IsOnlyId ) onlyId : boolean ,
76
76
) {
77
77
return onlyId
78
- ? { id : product . project }
79
- : await projects . load ( { id : product . project , view : { active : true } } ) ;
78
+ ? { id : product . project . id }
79
+ : await projects . load ( { id : product . project . id , view : { active : true } } ) ;
80
80
}
81
81
82
82
@ResolveField ( ( ) => ProductApproach , { nullable : true } )
You can’t perform that action at this time.
0 commit comments