This commit is contained in:
Thomas Rogers 2024-11-28 22:54:47 +01:00
parent 7cbc1aa11d
commit b82734d709

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 = '$2'`,
[articleSlug, feedId]
)
return rows && rows.length === 0