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

Commit

Permalink
fix: Remove schema name from table name when checking for duplicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjuaneight committed May 31, 2022
1 parent a84808b commit fc93376
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hasura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export const addHasuraRecord = async (
`;

try {
const existing = await searchBookmarkItems(list, bkTitle ?? '', bkColumn);
const existing = await searchBookmarkItems(
list.replace('bookmarks_', ''),
bkTitle ?? '',
bkColumn
);

if (existing.length !== 0) {
console.log('addHasuraRecord', 'Bookmark already exists.');
Expand Down

0 comments on commit fc93376

Please sign in to comment.