diff --git a/frontend/src/app/attendance/page.tsx b/frontend/src/app/attendance/page.tsx
index f59e14a5..344252ac 100644
--- a/frontend/src/app/attendance/page.tsx
+++ b/frontend/src/app/attendance/page.tsx
@@ -23,7 +23,7 @@ import type {
MonthlyAttendanceMatrixCell,
MonthlyAttendanceMatrixEmployee,
MonthlyAttendanceMatrixRow,
- LogStormSchedulePayload,
+ AttendanceSchedulePayload,
} from "@/lib/api/attendance";
import type { User } from "@/types/api";
@@ -339,7 +339,7 @@ export default function AttendancePage() {
}
}
- function getSchedulePayload(): LogStormSchedulePayload | undefined {
+ function getSchedulePayload(): AttendanceSchedulePayload | undefined {
if (!useManualSchedule) return undefined;
return {
start_time: scheduleStart,
@@ -365,7 +365,7 @@ export default function AttendancePage() {
return true;
}
- async function loadStatistics(options?: { refreshFromLogStorm?: boolean }) {
+ async function loadStatistics(options?: { refreshFromAnalyzer?: boolean }) {
setError(null);
setMatrices([]);
setSelectedCell(null);
@@ -378,8 +378,8 @@ export default function AttendancePage() {
const employeeIds = selectedEmployees.map((employee) => employee.id).join(",");
for (const employee of selectedEmployees) {
- if (options?.refreshFromLogStorm) {
- await apiClient.analyzeLogStormAttendance({
+ if (options?.refreshFromAnalyzer) {
+ await apiClient.analyzeAttendance({
employee_id: employee.id,
period_start: periodStart,
period_end: periodEnd,
@@ -424,7 +424,7 @@ export default function AttendancePage() {
Посещаемость
- Выбор сотрудников и периода для статистики LogStorm
+ Выбор сотрудников и периода для статистики посещаемости