Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jeniii committed Jan 22, 2025
1 parent 5e88dfa commit 2ecb91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-local-cli-nodejs/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function processSrcDataByLine(line: string, outputStream: Writable, cfg:
}
// RECORD and STATE type messages: write to output file
else {
if (data?.record?.stream) {
if (data?.record?.stream && cfg.dstStreamPrefix) {
data.record.stream = `${cfg.dstStreamPrefix ?? ''}${data.record.stream}`;
}
outputStream.write(`${JSON.stringify(data)}\n`);
Expand Down

0 comments on commit 2ecb91d

Please sign in to comment.