From 73bad1e9ec3c0981151ead328b8f955c70f07429 Mon Sep 17 00:00:00 2001 From: jloup Date: Thu, 21 Jun 2018 09:46:05 +0200 Subject: [PATCH] Set newStatus to enabled if no result are returned from credentials test. --- api/market_config.go | 2 ++ 1 file changed, 2 insertions(+) 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) { return nil, NewInternalError(resultErr) } else if resultErr != nil { return nil, NewInternalError(resultErr) + } else if resultErr == nil { + newStatus = db.MarketConfigEnabled } if newStatus != config.Status { -- 2.41.0