markSynced method

  1. @override
Future<void> markSynced(
  1. String id
)
override

Mark an entry as successfully synced.

Implementation

@override
Future<void> markSynced(String id) async {
  await _db.customStatement(
    'UPDATE dynos_sync_queue SET synced_at = ? WHERE id = ? AND synced_at IS NULL',
    [DateTime.now().toUtc().millisecondsSinceEpoch, id],
  );
}