Skip to content

Commit

Permalink
chore: remove use of entity service
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Apr 23, 2024
1 parent 3b831b1 commit bf3f867
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/core/admin/ee/server/src/services/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ const sendUpdateProjectInformation = async () => {
}

if (EE.features.isEnabled('cms-content-releases')) {
const numberOfContentReleases = await strapi.entityService.count(
'plugin::content-releases.release'
);
const numberOfPublishedContentReleases = await strapi.entityService.count(
'plugin::content-releases.release',
{
filters: { $not: { releasedAt: null } },
}
);
const numberOfContentReleases = await strapi.db
.query('plugin::content-releases.release')
.count();

const numberOfPublishedContentReleases = await strapi.db
.query('plugin::content-releases.release')
.count({
filters: { releasedAt: { $notNull: true } },
});

groupProperties = assign(groupProperties, {
numberOfContentReleases,
Expand Down

0 comments on commit bf3f867

Please sign in to comment.