Adding more logging to server log for cloud etc.

This commit is contained in:
mike12345567 2022-07-28 11:14:06 +01:00
parent f7cf13059f
commit 76ce26c6b5
1 changed files with 8 additions and 2 deletions

View File

@ -31,15 +31,21 @@ exports.definition = {
type: "boolean", type: "boolean",
description: "Whether the action was successful", description: "Whether the action was successful",
}, },
message: {
type: "string",
description: "What was output",
}, },
required: ["success"], },
required: ["success", "message"],
}, },
}, },
} }
exports.run = async function ({ inputs, appId }) { exports.run = async function ({ inputs, appId }) {
console.log(`App ${appId} - ${inputs.text}`) const message = `App ${appId} - ${inputs.text}`
console.log(message)
return { return {
success: true, success: true,
message,
} }
} }