Skip to content

Commit

Permalink
pkp/pkp-lib#8700 Updated code to make use of the new safeCount() macro
Browse files Browse the repository at this point in the history
(cherry picked from commit ea45f32)
  • Loading branch information
jonasraoni committed May 30, 2024
1 parent 5a491e9 commit 08caa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/doi/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ public function isAssigned(int $doiId, string $pubObjectType): bool

return Repo::submissionFile()
->getCollector()
->getIds()
->count();
->getQueryBuilder()
->safeCount();
};

$isAssigned = match ($pubObjectType) {
Expand Down

0 comments on commit 08caa5a

Please sign in to comment.