Skip to content

Commit 36cae3b

Browse files
committed
Fix new convention of api request.
1 parent 317de36 commit 36cae3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ async function sendRequest(namespace, text, level = 'INFO', options = {}) {
5050
'Content-Type': 'application/json',
5151
},
5252
body: JSON.stringify({
53-
chatId: options.chat.id,
54-
chatSecret: options.chat.secret,
53+
idChat: options.chat.id,
54+
secret: options.chat.secret,
5555
namespace,
5656
level,
5757
text,

0 commit comments

Comments
 (0)