Ignore:
Timestamp:
02/01/21 00:15:12 (3 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
afefe75
Parents:
28d7d35
Message:

Patch bugs, minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/shared/data.service.ts

    r28d7d35 rde9d697  
    178178                    );
    179179    }
    180     //PharmacyHead PUT
    181180    updatePharmacyHead(head: IPharmacyHead) : Observable<IPharmacyHead> {
    182         return this.http.put<IPharmacyHead>(this.basePharmacyHead + '/update', head)
    183                    .pipe(
    184                         map((data) => {
    185                             return data;
    186                         }),
    187                         catchError(this.handleError)
    188                     );
    189     }
    190     //PharmacyHead DELETE
    191     deletePharmacyHead(id: string) : Observable<boolean> {
    192         return this.http.delete<boolean>(this.basePharmacyHead + '/delete/' + id)
    193                    .pipe(catchError(this.handleError));
     181        return this.http.post<IPharmacyHead>(this.basePharmacyHead + '/update', head)
     182                   .pipe(
     183                        map((data) => {
     184                            return data;
     185                        }),
     186                        catchError(this.handleError)
     187                    );
     188    }
     189    deletePharmacyHead(id: string) : Observable<any> {
     190        return this.http.post<any>(this.basePharmacyHead + '/delete/' + id, id)
     191                    .pipe(
     192                        map((data) => {
     193                            return data;
     194                        }),
     195                        catchError(this.handleError)
     196                    );
    194197    }
    195198    deleteClaimingRequest(id: string) : Observable<boolean> {
    196         return this.http.delete<boolean>(this.basePharmacyHead + '/requests/' + id)
    197                    .pipe(catchError(this.handleError));
     199        return this.http.post<boolean>(this.basePharmacyHead + '/requests/' + id, id)
     200                    .pipe(
     201                        map((data) => {
     202                            return data;
     203                        }),
     204                        catchError(this.handleError)
     205                    );
    198206    }
    199207
Note: See TracChangeset for help on using the changeset viewer.