Skip to content

Commit

Permalink
fix: Fix browser bookmarking input schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 29, 2024
1 parent 2ca29af commit 4481e0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/browser-extension/src/SavePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ export default function SavePage({ settings }: { settings: Settings }) {

try {
const resp = await fetch(
`${settings.address}/api/trpc/bookmarks.bookmarkLink`,
`${settings.address}/api/trpc/bookmarks.createBookmark`,
{
method: "POST",
headers: {
Authorization: `Bearer ${settings.apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
type: "link",
url: currentUrl,
json: {
type: "link",
url: currentUrl,
},
}),
},
);
Expand Down

0 comments on commit 4481e0e

Please sign in to comment.