mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
set member to admin
This commit is contained in:
@@ -39,6 +39,17 @@ export class HttpService {
|
||||
|
||||
}
|
||||
|
||||
async patch<T>(url: string, body: any = {}): Promise<Result<T, HttpErrorResponse>> {
|
||||
|
||||
try {
|
||||
const result = await this.http.patch<T>(url, body).toPromise()
|
||||
return ok (result as T)
|
||||
} catch (e) {
|
||||
return err(e as HttpErrorResponse)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async delete<T>(url: string, body = {}): Promise<Result<T, HttpErrorResponse>> {
|
||||
|
||||
const options = {
|
||||
|
||||
Reference in New Issue
Block a user