File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ import {
31
31
CreateLanguageInput ,
32
32
CreateLanguageOutput ,
33
33
DeleteLanguageOutput ,
34
+ ExternalFirstScripture ,
35
+ InternalFirstScripture ,
34
36
Language ,
35
37
LanguageListInput ,
36
38
LanguageListOutput ,
@@ -97,8 +99,13 @@ export class LanguageResolver {
97
99
return { canRead : false , canEdit : false } ;
98
100
}
99
101
const value = language . firstScriptureEngagement
100
- ? { hasFirst : true , engagement : language . firstScriptureEngagement }
101
- : { hasFirst : language . hasExternalFirstScripture . value ! } ;
102
+ ? ( {
103
+ hasFirst : true ,
104
+ engagement : language . firstScriptureEngagement . id ,
105
+ } satisfies InternalFirstScripture )
106
+ : ( {
107
+ hasFirst : language . hasExternalFirstScripture . value ! ,
108
+ } satisfies ExternalFirstScripture ) ;
102
109
return { canRead : true , canEdit : false , value } ;
103
110
}
104
111
You can’t perform that action at this time.
0 commit comments