File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/powersync_core/lib/src/database Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
124124 final result = await database.getAll (
125125 'SELECT priority, last_synced_at FROM ps_sync_state ORDER BY priority;' ,
126126 );
127+ const prioritySentinel = 2147483647 ;
127128 var hasSynced = false ;
128129 DateTime ? lastCompleteSync;
129130 final priorityStatus = < SyncPriorityStatus > [];
@@ -136,7 +137,7 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
136137 final priority = row.columnAt (0 ) as int ;
137138 final lastSyncedAt = parseDateTime (row.columnAt (1 ) as String );
138139
139- if (priority == - 1 ) {
140+ if (priority == prioritySentinel ) {
140141 hasSynced = true ;
141142 lastCompleteSync = lastSyncedAt;
142143 } else {
You can’t perform that action at this time.
0 commit comments