9 lines
319 B
TypeScript
9 lines
319 B
TypeScript
import type { EmployeeRttSummary } from './dto/employee-rtt-summary'
|
|
|
|
export const getEmployeeRttSummary = async (employeeId: number, year?: number) => {
|
|
const api = useApi()
|
|
const query = year ? { year } : {}
|
|
return api.get<EmployeeRttSummary>(`/employees/${employeeId}/rtt-summary`, query, { toast: false })
|
|
}
|
|
|