File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,19 @@ export async function buildAssociations(
112112 // @ts -expect-error
113113 context . exists . bind ( context )
114114
115- for ( const key of Object . keys ( schema . meta . associations ) ) {
116- const rule = schema . meta . associations [ key ] as AugmentedRuleType
115+ const keys = new Set ( Object . keys ( schema . meta . associations ) )
116+ keys . add ( 'physio' )
117+
118+ for ( const key of keys ) {
119+ let rule = schema . meta . associations [ key ] as AugmentedRuleType
120+ // BEP020 patch
121+ if ( key === 'physio' ) {
122+ rule = {
123+ selectors : [ 'suffix == "events"' , 'extension == ".tsv"' ] ,
124+ target : { suffix : 'physio' , extension : [ '.tsv.gz' ] } ,
125+ inherit : false ,
126+ }
127+ }
117128 if ( ! rule . selectors ! . every ( ( x ) => evalCheck ( x , context ) ) ) {
118129 continue
119130 }
You can’t perform that action at this time.
0 commit comments