Skip to content

Commit

Permalink
update snapshot tests - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik-rishi committed Apr 30, 2024
1 parent 27eea8b commit 8bc93ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function indexEntrypointFile({asyncapi, params}) {
return `const ${camelCase(channelName)} = require('./routes/${convertToFilename(channelName)}.js');`;
}).join('\n');

const isSecurityEnabled = params.securityScheme && (server.protocol() === 'kafka' || server.protocol() === 'kafka-secure') && (asyncapi.components().securitySchemes().get(params.securityScheme).type() !== 'X509');
const isSecurityEnabled = params.securityScheme && (server.protocol() === 'kafka' || server.protocol() === 'kafka-secure') && (asyncapi.components().securitySchemes().get(params.securityScheme).type() === 'X509');
let securitySchemeImports = isSecurityEnabled ? `
const fs = require('fs')
const certFilesDir = '${params.certFilesDir}';
Expand Down

0 comments on commit 8bc93ab

Please sign in to comment.