This commit is contained in:
Peter Maquiran
2024-06-13 16:01:33 +01:00
parent 35b1f3ae08
commit ec1fd5ad91
8 changed files with 146 additions and 47 deletions
@@ -48,12 +48,16 @@ export class AgendaDataService {
getEvents(userId: number, startDate: string, endDate: string, status: number, category: string, type: string): Observable<any> {
let params = new HttpParams()
.set('UserId', userId)
.set('Status', status)
if(userId == null || userId == undefined) {
throw('userId '+ userId)
}
if(status == -1 || status == undefined) {
params = params.set('status', status);
}
if (startDate !== null && startDate !== undefined) {
params = params.set('startDate', startDate);
}