Core: update shared gateway models

This commit is contained in:
Mariano Belinky
2026-02-02 12:58:16 +00:00
parent ff6114599e
commit 37eaca719a
6 changed files with 31 additions and 14 deletions

View File

@@ -187,10 +187,7 @@ export const handlePTTCommand: CommandHandler = async (params, allowTextCommands
params: invokeParams,
config: cfg,
});
const payload =
res.payload && typeof res.payload === "object"
? (res.payload as Record<string, unknown>)
: {};
const payload = res.payload && typeof res.payload === "object" ? res.payload : {};
const lines = [`PTT ${actionKey}${nodeId}`];
if (typeof payload.status === "string") {