mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user