Skip to content

Commit 64637ce

Browse files
committed
fixup! feat(activity): add bulk activity option
1 parent e8009b0 commit 64637ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function send(IEvent $event): int {
100100
*
101101
* @param IEvent $event
102102
* @param array $affectedUsers
103-
* @return list<array<int, mixed>>
103+
* @return list<array<int, string>>
104104
* @throws Exception
105105
*/
106106
public function bulkSend(IEvent $event, array $affectedUsers): array {
@@ -146,7 +146,7 @@ public function bulkSend(IEvent $event, array $affectedUsers): array {
146146
foreach ($affectedUsers as $affectedUser) {
147147
$qb->setParameter('affecteduser', $affectedUser);
148148
$qb->executeStatement();
149-
$activityIds[] = [$qb->getLastInsertId() => $affectedUser];
149+
$activityIds[] = [$qb->getLastInsertId() => (string)$affectedUser];
150150
}
151151

152152
$this->connection->commit();

0 commit comments

Comments
 (0)