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
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export class CategoryService {
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();
if(minDate) {