UnattachedMedia: point to new EventsDB tables

This commit is contained in:
Alex Gleason 2024-05-14 20:58:29 -05:00
parent b3985e740b
commit 69108c0375
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ async function selectUnattachedMediaQuery() {
async function getUnattachedMedia(until: Date) { async function getUnattachedMedia(until: Date) {
const query = await selectUnattachedMediaQuery(); const query = await selectUnattachedMediaQuery();
return query return query
.leftJoin('tags', 'unattached_media.url', 'tags.value') .leftJoin('nostr_tags', 'unattached_media.url', 'nostr_tags.value')
.where('uploaded_at', '<', until.getTime()) .where('uploaded_at', '<', until.getTime())
.execute(); .execute();
} }