diff --git a/lib/services/sync_service.dart b/lib/services/sync_service.dart index 8d497c99..085db192 100644 --- a/lib/services/sync_service.dart +++ b/lib/services/sync_service.dart @@ -449,8 +449,8 @@ class SyncManager { final rows = await db.query( 'articles', - where: 'updated_at > ?', - whereArgs: [lastSync ?? '1970-01-01T00:00:00Z'], + where: lastSync != null ? 'updated_at > ?' : null, + whereArgs: lastSync != null ? [lastSync] : null, ); if (rows.isEmpty) return; diff --git a/pubspec.yaml b/pubspec.yaml index 7a4beea0..7b99ee51 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.10.0+35 +version: 0.10.1+36 environment: sdk: '>=3.2.3 <4.0.0'