Skip to content

Commit 603b56a

Browse files
committed
Fixed PriorityStatusEntries LastSyncedAt message.
1 parent c3714f4 commit 603b56a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
- Add `trackPreviousValues` option on `TableOptions` which sets `CrudEntry.PreviousValues` to previous values on updates.
55
- Add `trackMetadata` option on `TableOptions` which adds a `_metadata` column that can be used for updates. The configured metadata is available through `CrudEntry.Metadata`.
66
- Add `ignoreEmptyUpdates` option on `TableOptions` which skips creating CRUD entries for updates that don't change any values.
7-
- Report progress information about downloaded rows. Sync progress is available through `SyncStatus.DownloadProgress()`.
7+
- Reporting progress information about downloaded rows. Sync progress is available through `SyncStatus.DownloadProgress()`.
8+
- Support bucket priorities.
9+
- Report `PriorityStatusEntries` on `SyncStatus`.
810

911
## 0.0.5-alpha.1
1012
- Using the latest (0.4.9) version of the core extension, it introduces support for the Rust Sync implementation and also makes it the default - users can still opt out and use the legacy C# sync implementation as option when calling `connect()`.

PowerSync/PowerSync.Common/Client/Sync/Stream/CoreInstructions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static DB.Crud.SyncPriorityStatus PriorityToStatus(SyncPriorityStatus sta
138138
{
139139
Priority = status.Priority,
140140
HasSynced = status.HasSynced ?? null,
141-
LastSyncedAt = status?.LastSyncedAt != null ? new DateTime(status!.LastSyncedAt) : null
141+
LastSyncedAt = status?.LastSyncedAt != null ? DateTimeOffset.FromUnixTimeSeconds(status!.LastSyncedAt).DateTime : null
142142
};
143143
}
144144

0 commit comments

Comments
 (0)