@newspapper/core
    Preparing search index...

    Function setPostKeywords

    • Upsert names into keywords and replace the post's join rows, in one transaction. Returns the normalized names now attached to the post.

      Parameters

      • db: Database
      • postId: number
      • names: string[]

      Returns string[]