@newspapper/core
    Preparing search index...

    Function updateSource

    • Patch a source's config. The Reader's bookkeeping (validators, last fetch, last error) is never touched from here, except that a changed feed URL drops the validators: an ETag belongs to the URL that sent it.

      Parameters

      • id: string
      • patch: Partial<Omit<SourceConfig, "id">>
      • Optionaldb: Database

      Returns Source[]