From 26e6779c70a59a9a1552ce5622749a6d1d40aebc Mon Sep 17 00:00:00 2001 From: Clemens Zagler Date: Thu, 14 Nov 2024 09:52:04 +0100 Subject: [PATCH] tr/echarging-ocpi remove unnecessary metadata fields --- transformers/echarging-ocpi/src/dto.go | 2 +- transformers/echarging-ocpi/src/main.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/transformers/echarging-ocpi/src/dto.go b/transformers/echarging-ocpi/src/dto.go index fd08a9c..37c97e0 100644 --- a/transformers/echarging-ocpi/src/dto.go +++ b/transformers/echarging-ocpi/src/dto.go @@ -28,7 +28,7 @@ type OCPIEvse struct { MaxVoltage int `bson:"max_voltage" json:"max_voltage"` MaxAmperage int `bson:"max_amperage" json:"max_ampere"` MaxElectricPower int `bson:"max_electric_power" json:"max_electric_power"` - TariffIds []string `bson:"tariff_ids" json:"tarrif_ids,omitempty"` + TariffIds []string `bson:"tariff_ids" json:"-"` } LastUpdated time.Time `bson:"last_updated"` } diff --git a/transformers/echarging-ocpi/src/main.go b/transformers/echarging-ocpi/src/main.go index 6688106..c5b763f 100644 --- a/transformers/echarging-ocpi/src/main.go +++ b/transformers/echarging-ocpi/src/main.go @@ -158,7 +158,6 @@ func main() { station.MetaData = map[string]any{ "country_code": loc.CountryCode, "party_id": loc.PartyID, - "publish": loc.Publish, "address": loc.Address, "city": loc.City, "postal_code": loc.PostalCode,