Ignore:
Timestamp:
02/08/21 16:39:25 (3 years ago)
Author:
Dimitar Slezenkovski <dslezenkovski@…>
Branches:
master
Children:
8eb1e21, dae4cde
Parents:
0a694bb
Message:

Fix all bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/admin/admin.component.ts

    r0a694bb re0cdea2  
    124124
    125125  rejectRequest(req: IPharmacyHeadRequest) {
    126     this.dataService.deleteClaimingRequest(req.id)
     126    this.dataService.deleteClaimingRequest(req)
    127127        .subscribe((status: boolean) => {
    128128          if(status) {
     
    139139  approveRequest(req: IPharmacyHeadRequest) {
    140140    if(req) {
     141      if (req.PharmacyHead.Pharmacy == null){
     142        req.PharmacyHead.Pharmacy = [];
     143      }
    141144    req.PharmacyHead.Pharmacy.push(req.Pharmacy);
    142145    this.dataService.updatePharmacyHead(req.PharmacyHead)
Note: See TracChangeset for help on using the changeset viewer.