Skip to content

Commit

Permalink
Fix dealing with user rating never finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed May 16, 2024
1 parent 17c5ab7 commit 7775d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/services/WbotServices/wbotMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,8 @@ export const handleRating = async (
const io = getIO();
let rate: number | null = null;

if (msg?.message?.conversation) {
rate = parseInt(msg.message?.conversation, 10) || null;
if (msg?.message?.conversation || msg?.message?.extendedTextMessage) {
rate = parseInt(msg.message.conversation || msg.message.extendedTextMessage.text , 10) || null;
}

if (!Number.isNaN(rate) && Number.isInteger(rate) && !isNull(rate)) {
Expand Down

0 comments on commit 7775d19

Please sign in to comment.