@@ -19,7 +19,7 @@ export const executeSql = routeDefinition({
1919      } 
2020    }  =  payload ; 
2121
22-     const  apiHandler  =  payload . context . service_context . routerEngine ! . getAPI ( ) ; 
22+     const  apiHandler  =  payload . context . service_context . routerEngine . getAPI ( ) ; 
2323
2424    const  sourceConfig  =  await  apiHandler . getSourceConfig ( ) ; 
2525    if  ( ! sourceConfig . debug_api )  { 
@@ -47,7 +47,7 @@ export const diagnostics = routeDefinition({
4747    const  {  service_context }  =  context ; 
4848    const  include_content  =  payload . params . sync_rules_content  ??  false ; 
4949
50-     const  apiHandler  =  service_context . routerEngine ! . getAPI ( ) ; 
50+     const  apiHandler  =  service_context . routerEngine . getAPI ( ) ; 
5151
5252    const  status  =  await  apiHandler . getConnectionStatus ( ) ; 
5353    if  ( ! status )  { 
@@ -94,7 +94,7 @@ export const getSchema = routeDefinition({
9494  authorize : authApi , 
9595  validator : schema . createTsCodecValidator ( internal_routes . GetSchemaRequest ,  {  allowAdditional : true  } ) , 
9696  handler : async  ( payload )  =>  { 
97-     const  apiHandler  =  payload . context . service_context . routerEngine ! . getAPI ( ) ; 
97+     const  apiHandler  =  payload . context . service_context . routerEngine . getAPI ( ) ; 
9898
9999    return  internal_routes . GetSchemaResponse . encode ( await  api . getConnectionsSchema ( apiHandler ) ) ; 
100100  } 
@@ -112,7 +112,7 @@ export const reprocess = routeDefinition({
112112    const  { 
113113      storageEngine : {  activeBucketStorage } 
114114    }  =  service_context ; 
115-     const  apiHandler  =  service_context . routerEngine ! . getAPI ( ) ; 
115+     const  apiHandler  =  service_context . routerEngine . getAPI ( ) ; 
116116    const  next  =  await  activeBucketStorage . getNextSyncRules ( apiHandler . getParseSyncRulesOptions ( ) ) ; 
117117    if  ( next  !=  null )  { 
118118      throw  new  Error ( `Busy processing sync rules - cannot reprocess` ) ; 
@@ -159,7 +159,7 @@ export const validate = routeDefinition({
159159      context : {  service_context } 
160160    }  =  payload ; 
161161    const  content  =  payload . params . sync_rules ; 
162-     const  apiHandler  =  service_context . routerEngine ! . getAPI ( ) ; 
162+     const  apiHandler  =  service_context . routerEngine . getAPI ( ) ; 
163163
164164    const  schemaData  =  await  api . getConnectionsSchema ( apiHandler ) ; 
165165    const  schema  =  new  StaticSchema ( schemaData . connections ) ; 
0 commit comments