@@ -40,6 +40,15 @@ export class UsersService {
|
||||
return this.http.post('/users', user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId user ID of user.
|
||||
* @param {any} user user to be updated.
|
||||
* @returns {Observable<any>} User.
|
||||
*/
|
||||
editUser(userId: string, user: any): Observable<any> {
|
||||
return this.http.put(`/users/${userId}`, user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId user ID of user.
|
||||
* @returns {Observable<any>} User.
|
||||
@@ -72,7 +81,8 @@ export class UsersService {
|
||||
*/
|
||||
getStaff(officeId: any): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('officeId', officeId.toString());
|
||||
.set('officeId', officeId.toString())
|
||||
.set('status', 'all');
|
||||
return this.http.get('/staff', { params: httpParams });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user