Skip to content

Commit ff93298

Browse files
fix(Cloud): store ID in infraStore
1 parent f25a273 commit ff93298

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/stores/infra.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { appMode, getAppMode } from "@ogw_front/utils/app_mode.js"
44
export const useInfraStore = defineStore("infra", {
55
state: () => ({
66
app_mode: getAppMode(),
7+
ID: "",
78
is_captcha_validated: false,
89
status: Status.NOT_CREATED,
910
microservices: [],
@@ -65,7 +66,7 @@ export const useInfraStore = defineStore("infra", {
6566
} else if (this.app_mode == appMode.CLOUD) {
6667
console.log("[INFRA] CLOUD mode - Launching lambda...")
6768
const lambdaStore = useLambdaStore()
68-
await lambdaStore.launch()
69+
this.ID = await lambdaStore.launch()
6970
console.log("[INFRA] Lambda launched successfully")
7071
}
7172

app/stores/lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const useLambdaStore = defineStore("lambda", {
4141
if (error.value || !data.value) {
4242
this.status = Status.NOT_CONNECTED
4343
feedbackStore.server_error = true
44-
console.error("[LAMBDA] Failed to launch lambda backend")
44+
console.error("[LAMBDA] Failed to launch lambda backend", error.value)
4545
throw new Error("Failed to launch lambda backend")
4646
}
4747

0 commit comments

Comments
 (0)