diff --git a/BACKEND/app/models/station.ts b/BACKEND/app/models/station.ts index 09de959..986661e 100644 --- a/BACKEND/app/models/station.ts +++ b/BACKEND/app/models/station.ts @@ -81,5 +81,5 @@ export default class Station extends BaseModel { declare updatedAt: DateTime @column() - declare sendWiki: boolean + declare send_wiki: boolean } diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index 26d4a7d..44e960e 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -549,7 +549,7 @@ export class WebSocketIo { const stationId = data.stationId || '' const station = await Station.find(stationId) // Check station sendWiki flag - if (!station || !station?.sendWiki) return + if (!station || !station?.send_wiki) return console.log('[DPELP] Received run all dpelp') const results = await this.waitUntilAllReady(lineIds) diff --git a/FRONTEND/src/components/FormAddEdit.tsx b/FRONTEND/src/components/FormAddEdit.tsx index a780715..757e0c3 100644 --- a/FRONTEND/src/components/FormAddEdit.tsx +++ b/FRONTEND/src/components/FormAddEdit.tsx @@ -123,6 +123,7 @@ const StationSetting = ({ setLines([lineInit]); setOpenConfirm(false); form.reset(); + form.setFieldValue("send_wiki", true); } }, [isOpen]); diff --git a/FRONTEND/src/components/ModalTerminal.tsx b/FRONTEND/src/components/ModalTerminal.tsx index c838fb5..fbc8fb6 100644 --- a/FRONTEND/src/components/ModalTerminal.tsx +++ b/FRONTEND/src/components/ModalTerminal.tsx @@ -653,7 +653,7 @@ const ModalTerminal = ({ {findDataShowVersion() ? findDataShowVersion()?.MEMORY + (findDataShowVersion()?.USB_FLASH - ? "/" + findDataShowVersion()?.USB_FLASH + ? " - " + findDataShowVersion()?.USB_FLASH : "") : ""}