mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
UnattachedMedia: point to new EventsDB tables
This commit is contained in:
parent
b3985e740b
commit
69108c0375
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue