2
0

Update publishTypebot.ts

This commit is contained in:
Baptiste Arnaud
2023-12-08 18:32:15 +00:00
committed by GitHub
parent 4fdc1bfe5c
commit 248cee8865

View File

@ -94,7 +94,7 @@ export const publishTypebot = authenticatedProcedure
}),
})
if (riskLevel > 0) {
if (riskLevel > 0 && riskLevel !== existingTypebot.riskLevel) {
if (env.MESSAGE_WEBHOOK_URL)
await fetch(env.MESSAGE_WEBHOOK_URL, {
method: 'POST',