resetFailedOperations method

Future<void> resetFailedOperations()

Reset failed operations to pending (for retry after reconnect)

Implementation

Future<void> resetFailedOperations() async {
  final failedOps = await _localStorage.getFailedSyncOperations();
  for (final op in failedOps) {
    await _localStorage.updateSyncOperationStatus(
      operationId: op.id,
      status: 'pending',
    );
    // Reset retry count
    await _localStorage.resetOperationRetryCount(op.id);
  }
}