2022-05-23 00:51:59 +04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2026-07-04 20:01:16 +04:00
|
|
|
async count() {
|
2026-04-21 19:46:58 +04:00
|
|
|
const countArtiste = await strapi.documents('api::artiste.artiste').count({
|
|
|
|
|
publicationState: 'live'
|
2026-07-04 20:01:16 +04:00
|
|
|
});
|
2026-04-21 19:46:58 +04:00
|
|
|
|
|
|
|
|
const countParole = await strapi.documents('api::parole.parole').count({
|
|
|
|
|
publicationState: 'live'
|
2026-07-04 20:01:16 +04:00
|
|
|
});
|
2022-05-25 06:40:50 +04:00
|
|
|
|
2026-07-04 20:01:16 +04:00
|
|
|
return {countArtiste, countParole};
|
2022-05-23 00:51:59 +04:00
|
|
|
}
|
2026-07-04 20:01:16 +04:00
|
|
|
};
|