Skip to content

Commit

Permalink
fix: DELETE and PUT policyData.ues.chargingData when editing Subscrib…
Browse files Browse the repository at this point in the history
…er's data
  • Loading branch information
brianchennn committed Aug 29, 2023
1 parent eb9e6f7 commit 601ddcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions backend/WebUI/api_webui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,9 @@ func dbOperation(ueId string, servingPlmnId string, method string, subsData *Sub
if err := mongoapi.RestfulAPIDeleteMany(qosFlowDataColl, filter); err != nil {
logger.ProcLog.Errorf("PutSubscriberByID err: %+v", err)
}
if err := mongoapi.RestfulAPIDeleteMany(chargingDataColl, filter); err != nil {
logger.ProcLog.Errorf("PutSubscriberByID err: %+v", err)
}
} else if method == "delete" {
if err := mongoapi.RestfulAPIDeleteOne(authSubsDataColl, filterUeIdOnly); err != nil {
logger.ProcLog.Errorf("DeleteSubscriberByID err: %+v", err)
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -917,13 +917,13 @@ export interface Tenant {
/**
*
* @export
* @interface ChargingData
* @interface ChargingRecord
*/
export interface ChargingRecord {
/**
*
* @type {string}
* @memberof Tenant
* @memberof ChargingRecord
*/
'SUPI'?: string;
/**
Expand Down

0 comments on commit 601ddcb

Please sign in to comment.