markAllPendingSessionStartsNonDurable static method

Future<void> markAllPendingSessionStartsNonDurable()

Mark all pending session_starts as non-durable (when DB rebuild happens).

Implementation

static Future<void> markAllPendingSessionStartsNonDurable() async {
  await _mutatePendingSessionStarts(
    'markAllPendingSessionStartsNonDurable',
    (pending) =>
        pending
            .map(
              (e) => _PendingSessionStart(
                ts: e.ts,
                number: e.number,
                durable: false,
                locallyStored: false,
                hasLocalStoreProvenance: true,
                compatibilityState: null,
              ),
            )
            .toList(),
  );
}