UnattachedMedia: point to new EventsDB tables
This commit is contained in:
parent
b3985e740b
commit
69108c0375
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue