Skip to content

Commit

Permalink
Merge pull request #84 from andy89923/fix/charging-record
Browse files Browse the repository at this point in the history
fix: adjust charging record filter
  • Loading branch information
ianchen0119 authored Mar 22, 2024
2 parents 8f1dd02 + b701f9e commit 19890cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/WebUI/api_charging.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ func GetChargingData(c *gin.Context) {
return
}

filter := bson.M{"chargingMethod": chargingMethod}
filter := bson.M{
"chargingMethod": chargingMethod,
"ratingGroup": nil,
}
chargingDataInterface, err := mongoapi.RestfulAPIGetMany(chargingDataColl, filter)
if err != nil {
logger.BillingLog.Errorf("mongoapi error: %+v", err)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/SubscriberCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ export default function SubscriberCreate() {
</TableRow>
</TableBody>
</Table>
{chargingConfig(undefined, row.singleNssai!, undefined)}
{chargingConfig("", row.singleNssai!, "")}
{row.dnnConfigurations &&
Object.keys(row.dnnConfigurations!).map((dnn) => (
<div
Expand Down

0 comments on commit 19890cd

Please sign in to comment.