Skip to content

Commit 0a30e4f

Browse files
committed
fixup! Reset all in_call flags in one go
1 parent d615968 commit 0a30e4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Model/SessionMapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ public function deleteByIds(array $ids): int {
9292
}
9393

9494
/**
95-
* @param int[] $ids
95+
* @param string[] $sessionIds
9696
*/
97-
public function resetInCallByIds(array $ids): void {
97+
public function resetInCallByIds(array $sessionIds): void {
9898
$update = $this->db->getQueryBuilder();
9999
$update->update($this->getTableName())
100100
->set('in_call', $update->createNamedParameter(Participant::FLAG_DISCONNECTED, IQueryBuilder::PARAM_INT))
101-
->where($update->expr()->in('id', $update->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)));
101+
->where($update->expr()->in('session_id', $update->createNamedParameter($sessionIds, IQueryBuilder::PARAM_STR_ARRAY)));
102102
$update->executeStatement();
103103
}
104104

0 commit comments

Comments
 (0)