We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce6f7e commit 50f2141Copy full SHA for 50f2141
backend/pkd/gasstation/gsrepo.go
@@ -124,6 +124,11 @@ func UpdatePrice(gasStationPrices *[]GasStationPrices) {
124
delete(stationPricesMap, value.GasStationID)
125
}
126
127
+ stationPricesDb = nil
128
+ handleMaps(stationPricesMap, gasPriceUpdateMap)
129
+}
130
+
131
+func handleMaps(stationPricesMap map[string]GasStationPrices, gasPriceUpdateMap map[string]gsmodel.GasPrice) {
132
if len(stationPricesMap) > 0 {
133
var stationIds []string
134
for _, stationPrice := range stationPricesMap {
0 commit comments