Skip to content

Commit 0d2e2a6

Browse files
committed
the affectedRows < 1 check should be removed or relaxed; otherwise, concurrent searches will continue to trigger unnecessary exceptions.
1 parent c059cbc commit 0d2e2a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Classes/Domain/Search/LastSearches/LastSearchesRepository.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ protected function update(array $lastSearchesRow): void
139139
->set('keywords', $lastSearchesRow['keywords'])
140140
->executeStatement();
141141

142-
if ($affectedRows === false) {
143-
throw new InvalidArgumentException(vsprintf('By trying to update last searches row with values "%s" nothing was updated, make sure the given "sequence_id" exists in database.', [json_encode($lastSearchesRow)]), 1502717923);
144-
}
142+
145143
}
146144
}

0 commit comments

Comments
 (0)