Skip to content

Commit

Permalink
chore: add log for tool deletion (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Aug 20, 2024
1 parent f088803 commit 4bc0fbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export async function upsertToolForUrl(url: string, tools: Tool[], examples: Too
}

export async function removeToolForUrlIfExists(url: string): Promise<Tool[]> {
console.log('Deleting tool for url:', url)
const toolEntry = await prisma.toolEntry.findFirst({ where: { reference: url } })

if (!toolEntry) {
Expand Down

0 comments on commit 4bc0fbb

Please sign in to comment.