Fix message types
This commit is contained in:
@@ -50,9 +50,17 @@ const getProposalHandler = async (
|
||||
columns: {
|
||||
id: true, // Fetch the ID
|
||||
content: true, // Fetch the content to parse
|
||||
approvalState: true,
|
||||
},
|
||||
});
|
||||
|
||||
if (
|
||||
latestAssistantMessage?.approvalState === "approved" ||
|
||||
latestAssistantMessage?.approvalState === "rejected"
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (latestAssistantMessage?.content && latestAssistantMessage.id) {
|
||||
const messageId = latestAssistantMessage.id; // Get the message ID
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user