mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
fix(bot): 🐛 body undefined
This commit is contained in:
8
.github/workflows/check-provider-major.yml
vendored
8
.github/workflows/check-provider-major.yml
vendored
@@ -39,8 +39,14 @@ jobs:
|
|||||||
- name: Check Twilio
|
- name: Check Twilio
|
||||||
run: yarn node ./scripts/checker.js --name=twilio --stable=true
|
run: yarn node ./scripts/checker.js --name=twilio --stable=true
|
||||||
|
|
||||||
|
- name: Add and commit changes to gh-pages branch
|
||||||
|
run: |
|
||||||
|
git config --local user.email 'action@github.com'
|
||||||
|
git config --local user.name 'GitHub Action'
|
||||||
|
git add .
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: 'ci(providers): 🚩 Check BREAKING CHANGE'
|
commit_message: 'ci(providers): check provider versions'
|
||||||
create_branch: true
|
create_branch: true
|
||||||
branch: feature/breaking-change
|
branch: feature/breaking-change
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class CoreClass {
|
|||||||
const { body, from } = messageCtxInComming
|
const { body, from } = messageCtxInComming
|
||||||
let msgToSend = []
|
let msgToSend = []
|
||||||
let fallBackFlag = false
|
let fallBackFlag = false
|
||||||
|
if (!body) return
|
||||||
if (!body.length) return
|
if (!body.length) return
|
||||||
|
|
||||||
const prevMsg = await this.databaseClass.getPrevByNumber(from)
|
const prevMsg = await this.databaseClass.getPrevByNumber(from)
|
||||||
|
|||||||
Reference in New Issue
Block a user