mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
fix: Set default apiEndpoint to empty
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
db24961365
commit
940d8c9862
@ -296,7 +296,7 @@ module.exports = class ApplicationManager extends EventEmitter
|
||||
).get(appId)
|
||||
|
||||
getTargetApp: (appId) =>
|
||||
@config.get('apiEndpoint').then (endpoint = '') ->
|
||||
@config.get('apiEndpoint').then (endpoint) ->
|
||||
@db.models('app').where({ appId, source: endpoint }).select()
|
||||
.then ([ app ]) =>
|
||||
if !app?
|
||||
|
@ -26,7 +26,7 @@ class Config extends EventEmitter {
|
||||
private providerFunctions: ConfigProviderFunctions;
|
||||
|
||||
public schema: ConfigSchema = {
|
||||
apiEndpoint: { source: 'config.json' },
|
||||
apiEndpoint: { source: 'config.json', default: '' },
|
||||
apiTimeout: { source: 'config.json', default: 15 * 60 * 1000 },
|
||||
listenPort: { source: 'config.json', default: 48484 },
|
||||
deltaEndpoint: { source: 'config.json', default: 'https://delta.resin.io' },
|
||||
|
Loading…
Reference in New Issue
Block a user