File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed 
packages/compass-schema/src/stores Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -121,29 +121,37 @@ export const cancelExportSchema = (): SchemaThunkAction<
121121async  function  getSchemaByFormat ( { 
122122  exportFormat, 
123123  schemaAccessor, 
124+   signal, 
124125} : { 
125126  exportFormat : SchemaFormat ; 
126127  schemaAccessor : SchemaAccessor ; 
127128  signal : AbortSignal ; 
128129} ) : Promise < string >  { 
129-   // TODO: Use the signal once we pull in the schema accessor type changes. 
130130  let  schema :
131131    |  StandardJSONSchema 
132132    |  MongoDBJSONSchema 
133133    |  ExpandedJSONSchema 
134134    |  InternalSchema ; 
135135  switch  ( exportFormat )  { 
136136    case  'standardJSON' :
137-       schema  =  await  schemaAccessor . getStandardJsonSchema ( ) ; 
137+       schema  =  await  schemaAccessor . getStandardJsonSchema ( { 
138+         signal, 
139+       } ) ; 
138140      break ; 
139141    case  'mongoDBJSON' :
140-       schema  =  await  schemaAccessor . getMongoDBJsonSchema ( ) ; 
142+       schema  =  await  schemaAccessor . getMongoDBJsonSchema ( { 
143+         signal, 
144+       } ) ; 
141145      break ; 
142146    case  'extendedJSON' :
143-       schema  =  await  schemaAccessor . getExpandedJSONSchema ( ) ; 
147+       schema  =  await  schemaAccessor . getExpandedJSONSchema ( { 
148+         signal, 
149+       } ) ; 
144150      break ; 
145151    case  'legacyJSON' :
146-       schema  =  await  schemaAccessor . getInternalSchema ( ) ; 
152+       schema  =  await  schemaAccessor . getInternalSchema ( { 
153+         signal, 
154+       } ) ; 
147155      break ; 
148156  } 
149157
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments