Modify categoryService to accept string as dates.
This commit is contained in:
parent
e9cc86d064
commit
cf2453c4c6
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user