EU Parliament Monitor — API Documentation - v0.8.45
    Preparing search index...

    Function loadPendingDocuments

    • Load the pending documents store from disk. Returns an empty store when the file does not exist. Logs a warning and returns an empty store on any other read/parse error so a corrupted sidecar never blocks the workflow.

      Parameters

      • OptionalstorePath: string

        Path override (defaults to data/pending-documents.json)

      Returns Promise<PendingDocumentsStore>

      The loaded PendingDocumentsStore, or an empty store on ENOENT/parse error