@csmart/ngc-smart-victim 1.14.35 → 1.14.36
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +2 -2
- package/esm2020/lib/smart-victim.service.mjs +3 -3
- package/fesm2015/csmart-ngc-smart-victim.mjs +3 -3
- package/fesm2015/csmart-ngc-smart-victim.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-victim.mjs +3 -3
- package/fesm2020/csmart-ngc-smart-victim.mjs.map +1 -1
- package/lib/smart-victim.service.d.ts +1 -1
- package/package.json +1 -1
@@ -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,
|