Update save field send wiki

This commit is contained in:
nguyentrungthat 2025-12-04 16:37:24 +07:00
parent 2ad1ee195f
commit ab1ff30f12
4 changed files with 4 additions and 3 deletions

View File

@ -81,5 +81,5 @@ export default class Station extends BaseModel {
declare updatedAt: DateTime
@column()
declare sendWiki: boolean
declare send_wiki: boolean
}

View File

@ -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)

View File

@ -123,6 +123,7 @@ const StationSetting = ({
setLines([lineInit]);
setOpenConfirm(false);
form.reset();
form.setFieldValue("send_wiki", true);
}
}, [isOpen]);

View File

@ -653,7 +653,7 @@ const ModalTerminal = ({
{findDataShowVersion()
? findDataShowVersion()?.MEMORY +
(findDataShowVersion()?.USB_FLASH
? "/" + findDataShowVersion()?.USB_FLASH
? " - " + findDataShowVersion()?.USB_FLASH
: "")
: ""}
</Text>