remove article drafts (feature moved to new releases)

This commit is contained in:
ghost 2023-10-13 00:26:09 +03:00
parent da1e869be5
commit ea9f7f1589
35 changed files with 9 additions and 4606 deletions

View file

@ -65,20 +65,4 @@ class ActivityRepository extends ServiceEntityRepository
->getSingleScalarResult()
;
}
public function findActivitiesTotalByArticleId(
int $articleId,
array $whitelist
): int
{
return $this->createQueryBuilder('a')
->select('count(a.id)')
->where('a.articleId = :articleId')
->andWhere('a.event IN (:event)')
->setParameter(':articleId', $articleId)
->setParameter(':event', $whitelist)
->getQuery()
->getSingleScalarResult()
;
}
}