Skip to content

Commit 739ab5c

Browse files
committed
fix: improve oci compatibility when purging calendar invitations
Signed-off-by: Richard Steinmetz <[email protected]>
1 parent 2380294 commit 739ab5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3571,7 +3571,7 @@ protected function purgeCalendarInvitations(int $calendarId): void {
35713571
$cmd->delete($this->dbObjectInvitationsTable)
35723572
->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
35733573
foreach (array_chunk($allIds, 1000) as $chunkIds) {
3574-
$cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_INT_ARRAY);
3574+
$cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_STR_ARRAY);
35753575
$cmd->executeStatement();
35763576
}
35773577
}
@@ -3588,7 +3588,7 @@ protected function purgeCalendarInvitations(int $calendarId): void {
35883588
protected function purgeObjectInvitations(string $eventId): void {
35893589
$cmd = $this->db->getQueryBuilder();
35903590
$cmd->delete($this->dbObjectInvitationsTable)
3591-
->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId)));
3591+
->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
35923592
$cmd->executeStatement();
35933593
}
35943594
}

0 commit comments

Comments
 (0)