Skip to content

Commit 431c8ff

Browse files
committed
Modify Authentication Endpoint
1 parent 025fb71 commit 431c8ff

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.DS_Store
55
/loba
66
node_modules
7+
**/package-lock.json

DSL/Ruuter.private/DSL/POST/csa/message-event.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extractRequestData:
22
assign:
3-
messageId: ${incoming.body.id}
3+
id: ${incoming.body.id}
44
event: ${incoming.body.event}
55
authorTimestamp: ${incoming.body.authorTimestamp}
66

@@ -9,7 +9,7 @@ getMessageById:
99
args:
1010
url: "[#CHATBOT_RESQL]/get-message-by-id"
1111
body:
12-
id: ${messageId}
12+
id: ${id}
1313
result: res
1414
next: assignMessage
1515

@@ -23,7 +23,7 @@ insertMessage:
2323
args:
2424
url: "[#CHATBOT_RESQL]/insert-message"
2525
body:
26-
messageId: ${messageId}
26+
messageId: ${id}
2727
chatId: ${message.chatBaseId}
2828
authorId: ${message.authorId ?? ""}
2929
authorTimestamp: ${authorTimestamp}

GUI/src/components/Chat/index.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const Chat: FC<ChatProps> = ({
265265

266266
const postEventMutation = useMutation({
267267
mutationFn: (message: Message) =>
268-
apiDev.post('csa/message-event', {
268+
apiDev.post('csa/message', {
269269
chatId: message.chatId ?? '',
270270
content: '',
271271
event: message.event ?? '',
@@ -724,7 +724,9 @@ const Chat: FC<ChatProps> = ({
724724
<Button
725725
appearance="secondary"
726726
disabled={chat.customerSupportId != userInfo?.idCode}
727-
onClick={() => handleChatEvent(CHAT_EVENTS.REQUESTED_AUTHENTICATION)}
727+
onClick={() =>
728+
handleChatEvent(CHAT_EVENTS.REQUESTED_AUTHENTICATION)
729+
}
728730
>
729731
{t('chat.active.askAuthentication')}
730732
</Button>

0 commit comments

Comments
 (0)