Skip to content

Commit 0b6e312

Browse files
benjaminfruehmax-nextcloud
authored andcommitted
Update lib/Db/SessionMapper.php
Co-authored-by: max-nextcloud <[email protected]> Signed-off-by: Benjamin Früh <[email protected]>
1 parent 0c53f76 commit 0b6e312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Db/SessionMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function deleteOrphanedSteps(): int {
189189
$orphanedStepsQb = $this->db->getQueryBuilder();
190190
$orphanedStepsQb->select('st.id')
191191
->from('text_steps', 'st')
192-
->leftJoin('st', 'text_sessions', 's', $orphanedStepsQb->expr()->eq('st.session_id', 's.id'))
192+
->leftJoin('st', 'text_sessions', 's', $orphanedStepsQb->expr()->eq('st.document_id', 's.document_id'))
193193
->leftJoin('st', 'text_documents', 'd', $orphanedStepsQb->expr()->eq('st.document_id', 'd.id'))
194194
->where($orphanedStepsQb->expr()->isNull('s.id'))
195195
->andWhere($orphanedStepsQb->expr()->lt('st.timestamp', $orphanedStepsQb->createNamedParameter($safetyBufferTime)))

0 commit comments

Comments
 (0)