aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjloup <jean-loup.jamet@trainline.com>2018-06-21 09:46:05 +0200
committerjloup <jean-loup.jamet@trainline.com>2018-06-21 09:46:05 +0200
commit73bad1e9ec3c0981151ead328b8f955c70f07429 (patch)
tree025280e994c5a1b500735010031cb66538aee806
parentc086df915bf9884fe514a00b6c6d04f36321e1e3 (diff)
downloadFront-73bad1e9ec3c0981151ead328b8f955c70f07429.tar.gz
Front-73bad1e9ec3c0981151ead328b8f955c70f07429.tar.zst
Front-73bad1e9ec3c0981151ead328b8f955c70f07429.zip
Set newStatus to enabled if no result are returned from credentials test.v0.0.22
-rw-r--r--api/market_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/market_config.go b/api/market_config.go
index 155da1a..d5f05d9 100644
--- a/api/market_config.go
+++ b/api/market_config.go
@@ -105,6 +105,8 @@ func (q TestMarketCredentialsQuery) Run() (interface{}, *Error) {
105 return nil, NewInternalError(resultErr) 105 return nil, NewInternalError(resultErr)
106 } else if resultErr != nil { 106 } else if resultErr != nil {
107 return nil, NewInternalError(resultErr) 107 return nil, NewInternalError(resultErr)
108 } else if resultErr == nil {
109 newStatus = db.MarketConfigEnabled
108 } 110 }
109 111
110 if newStatus != config.Status { 112 if newStatus != config.Status {