This commit is contained in:
Thomas Rogers 2024-11-28 22:56:51 +01:00
parent b82734d709
commit cfc8cef20a

View file

@ -16,7 +16,7 @@ import { onErrorContinue } from '../utils/reactive'
const hasStoredInDatabase = async (articleSlug: string, feedId: string) => {
const { rows } = await sqlClient.query(
`SELECT slug FROM omnivore.discover_feed_articles WHERE slug = $1 and feed_id = '$2'`,
`SELECT slug FROM omnivore.discover_feed_articles WHERE slug = $1 and feed_id = $2gi`,
[articleSlug, feedId]
)
return rows && rows.length === 0