Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async post({ input, session, lastRoutePath, response }) {
const messageInDashbot = {
text: input.data,
userId: session.user.id
}
await dashbot.logIncoming(messageInDashbot)
const messageOutDashbot = {
text: response,
userId: session.user.id
}
await dashbot.logOutgoing(messageOutDashbot)
}
}