mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-02 16:45:08 +08:00
### What problem does this PR solve? Feat: Hide part of the message field in webhook mode #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: balibabu <assassin_cike@163.com>
This commit is contained in:
@ -7,7 +7,6 @@ import {
|
||||
import {
|
||||
IAttachment,
|
||||
IEventList,
|
||||
IInputEvent,
|
||||
IMessageEndData,
|
||||
IMessageEndEvent,
|
||||
IMessageEvent,
|
||||
@ -93,7 +92,7 @@ export function findMessageFromList(eventList: IEventList) {
|
||||
export function findInputFromList(eventList: IEventList) {
|
||||
const inputEvent = eventList.find(
|
||||
(x) => x.event === MessageEventType.UserInputs,
|
||||
) as IInputEvent;
|
||||
);
|
||||
|
||||
if (!inputEvent) {
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user