diff --git a/components/sidemenuData.js b/components/sidemenuData.js index 56e9119..7c7053f 100644 --- a/components/sidemenuData.js +++ b/components/sidemenuData.js @@ -15,11 +15,11 @@ const sidemenu = [ text: "График", url: "/cart/calendar/schedule", }, - { - id: "myshedule", - text: "Моя График", - url: "/cart/publishers/myschedule", - }, + // { + // id: "myshedule", + // text: "Моя График", + // url: "/cart/publishers/myschedule", + // }, { id: "locations", text: "Местоположения", diff --git a/pages/cart/publishers/stats.tsx b/pages/cart/publishers/stats.tsx index bbe98d3..6945583 100644 --- a/pages/cart/publishers/stats.tsx +++ b/pages/cart/publishers/stats.tsx @@ -20,7 +20,8 @@ function ContactsPage({ publishers }) {
-

Статистика

+

Статистика

+
{publishers.length} участника с предпочитания
{ const dateStr = new Date().toISOString().split('T')[0]; - let publishers = await filterPublishers('id,firstName,lastName,isactive,desiredShiftsPerMonth', "", new Date(), true, true, false); + let publishers = await filterPublishers('id,firstName,lastName,email,isactive,desiredShiftsPerMonth', "", new Date(), true, true, false); // const axios = await axiosServer(context); // const { data: publishers } = await axios.get(`api/?action=filterPublishers&assignments=true&availabilities=true&date=${dateStr}&select=id,firstName,lastName,isactive,desiredShiftsPerMonth`);