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 f324d1f commit d3d83a0
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 d3d83a0

Please sign in to comment.