mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
fix delete member and add member
This commit is contained in:
@@ -98,7 +98,7 @@ export class HttpService {
|
||||
|
||||
}
|
||||
|
||||
async delete<T>(url: string, httpParamsObj = {}): Promise<Result<T, HttpErrorResponse>> {
|
||||
async delete<T>(url: string, httpParamsObj = {}, body = {}): Promise<Result<T, HttpErrorResponse>> {
|
||||
|
||||
let httpParams = new HttpParams();
|
||||
|
||||
@@ -110,7 +110,8 @@ export class HttpService {
|
||||
}
|
||||
|
||||
let opts = {
|
||||
params : httpParams
|
||||
params : httpParams,
|
||||
body
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -121,7 +122,6 @@ export class HttpService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async patch<T>(url: string, body ={}): Promise<Result<T, HttpErrorResponse>> {
|
||||
try {
|
||||
const result = await this.http.patch<T>(url, body).toPromise();
|
||||
|
||||
Reference in New Issue
Block a user