Skip to content

Commit 77f158b

Browse files
Explicitly set field inline in ssor attachment object (#51)
## Summary <!-- Provide a brief description of the story behind this PR, as if explaining to a non-technical person. Or to an LLM so it can learn from it for future (autonomous) code improvements. Feel free to point to a deeper design doc, if applicable. --> This PR explicitly sets `inline` field if it is in `extractor_attachments_*` file to true or false. ## Connected Issues <!-- Have you cared to connect this PR to a work item in DevRev, so that we can understand future routing and attribution? --> - https://app.devrev.ai/devrev/works/ISS-196132
1 parent 40e1d39 commit 77f158b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/workers/worker-adapter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,12 @@ export class WorkerAdapter<ConnectorState> {
740740
};
741741
}
742742

743-
if (attachment.inline) {
743+
// This will set inline flag in ssor_attachment only if it is explicity
744+
// set in the attachment object.
745+
if (attachment.inline === true) {
744746
ssorAttachment.inline = true;
747+
} else if (attachment.inline === false) {
748+
ssorAttachment.inline = false;
745749
}
746750

747751
await this.getRepo('ssor_attachment')?.push([ssorAttachment]);

0 commit comments

Comments
 (0)