fix: save appId and url

This commit is contained in:
Eric Tuvesson
2024-03-25 09:44:17 +01:00
parent 985d609f03
commit fcf3a740e7
3 changed files with 7 additions and 1 deletions

View File

@@ -54,7 +54,9 @@ export class ExternalCloudService {
if (options.name) broker.name = options.name; if (options.name) broker.name = options.name;
if (options.description) broker.description = options.description; if (options.description) broker.description = options.description;
if (options.appId) broker.appId = options.appId;
if (options.masterKey) broker.masterKey = options.masterKey; if (options.masterKey) broker.masterKey = options.masterKey;
if (options.url) broker.endpoint = options.url;
await JSONStorage.set('externalBrokers', { brokers }); await JSONStorage.set('externalBrokers', { brokers });

View File

@@ -14,7 +14,9 @@ export type UpdateEnvironmentRequest = {
id: string; id: string;
name: string | undefined; name: string | undefined;
description: string | undefined; description: string | undefined;
appId: string | undefined;
masterKey: string | undefined; masterKey: string | undefined;
url: string | undefined;
}; };
export type CreateEnvironment = { export type CreateEnvironment = {

View File

@@ -64,7 +64,9 @@ function AsSelfHosted({
id: environment.id, id: environment.id,
name, name,
description, description,
masterKey appId,
masterKey,
url
}) })
.then(() => { .then(() => {
ToastLayer.showSuccess(`Updated Cloud Service`); ToastLayer.showSuccess(`Updated Cloud Service`);