Skip to content

@powersync/attachments saveToQueue doesn't save additionalColumns #714

@hunterm-wbc

Description

@hunterm-wbc

The attachments package lets us define additionalColumns when we define our attachment schema.

When we save an attachment in the AbstractAttachmentQueue using the saveToQueue method, passing along the any additional columns as part of the attachmentRecord, it does not save these additional columns, I think this is a bit unexpected.

A work around I think will work is to take the record returned by saveToQueue and perform an update, however this is a bit inefficient, and I think it would be clearer to save any additional columns provided to saveToQueue

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions