Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
fix: Use author when saving articles.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjuaneight committed May 22, 2023
1 parent c1efa86 commit 92e66a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bookmark-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export const bookmarkPage = async (
const record = isArticle
? ({
...baseData,
author: fmtValue(data.author),
author: fmtValue(data.creator),
site: fmtValue(data.site),
} as RecordData)
: ({ ...baseData, creator: fmtValue(data.creator) } as RecordData);
: ({ ...baseData, author: fmtValue(data.creator) } as RecordData);

try {
const hasuraResp = await addHasuraRecord(table, record);
Expand Down

0 comments on commit 92e66a2

Please sign in to comment.