@csmart/ngc-smart-victim 1.14.35 → 1.14.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -410,8 +410,8 @@ class NgcSmartVictimService {
410
410
  const tempVal = JSON.stringify(val);
411
411
  return this.http.post(this.smartVictimServiceUrl + 'VictimSupports/' + id, tempVal, options).pipe(map(res => { return res; }));
412
412
  }
413
- deleteVictims(val) {
414
- return this.http.delete(this.smartVictimServiceUrl + 'Victims/' + val, options).pipe(map(res => { return res; }));
413
+ deleteVictims(val, staffId) {
414
+ return this.http.delete(this.smartVictimServiceUrl + 'Victims/' + val + '?staffId=' + staffId, options).pipe(map(res => { return res; }));
415
415
  }
416
416
  // //==============Victim Serive===================================
417
417
  getVictims(offenderId) {
@@ -1086,7 +1086,7 @@ class SmartVictimDetailComponent {
1086
1086
  .subscribe(res => {
1087
1087
  this.result = res;
1088
1088
  if (this.result) {
1089
- this.victimService.deleteVictims(this.victimDetail.victimId)
1089
+ this.victimService.deleteVictims(this.victimDetail.victimId, this.staffId)
1090
1090
  .subscribe(result => {
1091
1091
  this.snackBar.open('Delete Successfully!', '', {
1092
1092
  duration: 3000,