Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
21 lines
745 B
TypeScript
21 lines
745 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
import { EmployeeAttendance } from './employee-attendance';
|
|
import { EmployeeAttendanceService } from './employee-attendance.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class EmployeeAttendanceResolver {
|
|
constructor(private ser: EmployeeAttendanceService) {}
|
|
|
|
resolve(route: ActivatedRouteSnapshot): Observable<EmployeeAttendance> {
|
|
const id = route.paramMap.get('id');
|
|
const startDate = route.queryParamMap.get('startDate') || null;
|
|
const finishDate = route.queryParamMap.get('finishDate') || null;
|
|
return this.ser.get(id, startDate, finishDate);
|
|
}
|
|
}
|