File tree Expand file tree Collapse file tree
apps/api/src/instrument-records Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,10 +72,7 @@ function handleChunkComplete(_data: ChunkCompleteData) {
7272
7373 if ( ! Array . isArray ( measureValue ) ) {
7474 rows . push ( {
75- groupId :
76- isArray ( record . subject . groupIds ) && record . subject . groupIds [ 0 ]
77- ? record . subject . groupIds [ 0 ]
78- : DEFAULT_GROUP_NAME ,
75+ groupId : record . groupId ?? DEFAULT_GROUP_NAME ,
7976 instrumentEdition : instrument . edition ,
8077 instrumentName : instrument . name ,
8178 measure : measureKey ,
@@ -100,10 +97,7 @@ function handleChunkComplete(_data: ChunkCompleteData) {
10097 throw new Error ( `exportRecords: ${ instrument . name } .${ measureKey } — ${ entry . message } ` ) ;
10198 }
10299 rows . push ( {
103- groupId :
104- isArray ( record . subject . groupIds ) && record . subject . groupIds [ 0 ]
105- ? record . subject . groupIds [ 0 ]
106- : DEFAULT_GROUP_NAME ,
100+ groupId : record . groupId ?? DEFAULT_GROUP_NAME ,
107101 instrumentEdition : instrument . edition ,
108102 instrumentName : instrument . name ,
109103 measure : `${ measureKey } - ${ entry . measure } ` ,
Original file line number Diff line number Diff line change 11export type RecordType = {
22 computedMeasures : null | { [ key : string ] : unknown } ;
33 date : string ;
4+ groupId : string ;
45 id : string ;
56 instrumentId : string ;
67 session : {
You can’t perform that action at this time.
0 commit comments