Skip to content

Commit 8699dc8

Browse files
authored
Merge pull request #382 from Scriptbash/fix-initial-sync
Fix favorites not getting pushed during inital sync
2 parents e6e5ea3 + 9dc7d07 commit 8699dc8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/services/sync_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ class SyncManager {
449449

450450
final rows = await db.query(
451451
'articles',
452-
where: 'updated_at > ?',
453-
whereArgs: [lastSync ?? '1970-01-01T00:00:00Z'],
452+
where: lastSync != null ? 'updated_at > ?' : null,
453+
whereArgs: lastSync != null ? [lastSync] : null,
454454
);
455455

456456
if (rows.isEmpty) return;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 0.10.0+35
19+
version: 0.10.1+36
2020

2121
environment:
2222
sdk: '>=3.2.3 <4.0.0'

0 commit comments

Comments
 (0)