mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
list event for today
This commit is contained in:
@@ -40,9 +40,18 @@ export class AgendaDataService {
|
||||
}
|
||||
|
||||
getEvents(userId: number, startDate: string, endDate: string, status: number, category: string, type: string): Observable<any> {
|
||||
const params = new HttpParams()
|
||||
let params = new HttpParams()
|
||||
.set('UserId', userId)
|
||||
.set('Status', status)
|
||||
|
||||
if (startDate !== null && startDate !== undefined) {
|
||||
params = params.set('startDate', startDate);
|
||||
}
|
||||
|
||||
if (endDate !== null && endDate !== undefined) {
|
||||
params = params.set('endDate', endDate);
|
||||
}
|
||||
|
||||
return this.http.get<any>(`${this.baseUrl}/Events`, { params });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user