]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Set newStatus to enabled if no result are returned from credentials test. v0.0.22
authorjloup <jean-loup.jamet@trainline.com>
Thu, 21 Jun 2018 07:46:05 +0000 (09:46 +0200)
committerjloup <jean-loup.jamet@trainline.com>
Thu, 21 Jun 2018 07:46:05 +0000 (09:46 +0200)
api/market_config.go

index 155da1abc12fcdf1e022c688396c2a716f787fd9..d5f05d9743df29c178d3eddd325003e3588697a3 100644 (file)
@@ -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 {