Skip to content

Commit

Permalink
Merge pull request #28 from powersync-ja/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
cahofmeyr authored Nov 8, 2023
2 parents b0f7446 + 14c18ad commit a0aecb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/powersync-attachments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The `AttachmentQueue` class is used to manage and sync attachments in your app.

### Example

In this example, the user captures photos when checklist item are be completed as part of an Inspection workflow.
In this example, the user captures photos when checklist items are completed as part of an inspection workflow.

The schema for the `checklist` table:

Expand Down Expand Up @@ -194,7 +194,8 @@ Any `AttachmentRecord` with `id` in first set of IDs retrieved from the watch qu
The `AttachmentQueue` sets up two watch queries on the `attachments` table, one for records in `QUEUED_UPLOAD` state and one for `QUEUED_DOWNLOAD` state.
In addition to watching for changes, the `AttachmentQueue` also trigger a sync every few seconds. This will retry any failed uploads/downloads, in particular after the app was offline
In addition to watching for changes, the `AttachmentQueue` also triggers a sync every few seconds. This will retry any failed uploads/downloads, in particular after the app was offline.
By default, this is every 30 seconds, but can be configured by setting `syncInterval` in the `AttachmentQueue` constructor options, or disabled by setting the interval to `0`.
### Uploading
Expand Down

0 comments on commit a0aecb3

Please sign in to comment.