From cf2453c4c69586e4322b86a405a332f94a8b847f Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 10 Jun 2018 17:23:47 +0200 Subject: [PATCH] Modify categoryService to accept string as dates. --- src/operations/category.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/category.service.ts b/src/operations/category.service.ts index c7559df..adcae12 100644 --- a/src/operations/category.service.ts +++ b/src/operations/category.service.ts @@ -23,7 +23,7 @@ export class CategoryService { return date; } - query(id: number, minDate: Date = null, maxDate: Date = null): Observable { + query(id: number, minDate: Date|string = null, maxDate: Date|string = null): Observable { let params: HttpParams = new HttpParams(); if(minDate) {