diff --git a/src/db/unattached-media.ts b/src/db/unattached-media.ts index 708e2f9..8063628 100644 --- a/src/db/unattached-media.ts +++ b/src/db/unattached-media.ts @@ -44,7 +44,7 @@ async function selectUnattachedMediaQuery() { async function getUnattachedMedia(until: Date) { const query = await selectUnattachedMediaQuery(); return query - .leftJoin('tags', 'unattached_media.url', 'tags.value') + .leftJoin('nostr_tags', 'unattached_media.url', 'nostr_tags.value') .where('uploaded_at', '<', until.getTime()) .execute(); }