From: jloup Date: Thu, 21 Jun 2018 07:46:05 +0000 (+0200) Subject: Set newStatus to enabled if no result are returned from credentials test. X-Git-Tag: v0.0.22 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git;a=commitdiff_plain;h=73bad1e9ec3c0981151ead328b8f955c70f07429 Set newStatus to enabled if no result are returned from credentials test. --- 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 {