diff --git a/start/routes.ts b/start/routes.ts index 0e772a6..a9b7fe5 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -343,12 +343,14 @@ Route.post('/api/wiki/page/insert', async ({ request, response }) => { if(typeof dataPayload === "string") text = dataPayload.replace(/\\n/g, '\n') else if(Array.isArray(dataPayload)){ + const dataPlatform = dataPayload?.find(el => el.command?.trim() === "show platform") + const DPELP = dataPlatform && !dataPlatform?.output?.includes("Incomplete") ? true : false text = `
 Line ${lineNumber ?? ""}:
 PID: ${pid ?? ""}
 VID: ${vid ?? ""}
 SN:  ${sn ?? ""}
-List commands: ${dataPayload.map(value => value.command?.trim()).join(", ")}
+Tested mode: ${DPELP? "DPELP" : "DPEL"}
 License:  ${license ?? ""}
 
`