Modify categoryService to accept string as dates.

This commit is contained in:
Alexis Lahouze 2018-06-10 17:23:47 +02:00
parent e9cc86d064
commit cf2453c4c6

View File

@ -23,7 +23,7 @@ export class CategoryService {
return date; return date;
} }
query(id: number, minDate: Date = null, maxDate: Date = null): Observable<Category[]> { query(id: number, minDate: Date|string = null, maxDate: Date|string = null): Observable<Category[]> {
let params: HttpParams = new HttpParams(); let params: HttpParams = new HttpParams();
if(minDate) { if(minDate) {