set member to admin

This commit is contained in:
Peter Maquiran
2024-08-06 11:24:00 +01:00
parent 7e14f55383
commit 2f214e0025
3889 changed files with 581 additions and 1962886 deletions
+11
View File
@@ -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 = {