Skip to content

Commit 6db117a

Browse files
committed
fix: Remove orphaned recordings from DB
1 parent 038467f commit 6db117a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bbblb/services/recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ async def scan(self, prefix=""):
854854
# All DB entries that were not found on disk are orphans
855855
if known_records - found_records:
856856
orphans = list(known_records - found_records)
857-
stmt = model.Recording.select(model.Recording.id.in_(orphans))
857+
stmt = model.Recording.select(model.Recording.record_id.in_(orphans))
858858
async for record in await session.stream_scalars(stmt):
859859
await self._fix_orphan(session, record)
860860

0 commit comments

Comments
 (0)