2022-05-23 00:51:59 +04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
async count(ctx, next) {
|
|
|
|
|
const countArtiste = await strapi.entityService.count('api::artiste.artiste')
|
2022-05-26 03:04:33 +04:00
|
|
|
const countParole = await strapi.entityService.count('api::parole.parole', {
|
|
|
|
|
filters: {
|
|
|
|
|
publishedAt: {
|
|
|
|
|
$notNull: true,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
2022-05-25 06:40:50 +04:00
|
|
|
|
2023-03-21 23:41:45 +04:00
|
|
|
return {countArtiste, countParole}
|
2022-05-23 00:51:59 +04:00
|
|
|
}
|
|
|
|
|
}
|