data-debug-fix-2

This commit is contained in:
Untone 2024-03-04 18:58:18 +03:00
parent a96ab447b6
commit d6be6def48

View File

@ -22,10 +22,8 @@ const server = Server.configure({
console.error('Request headers not found');
return null;
}
const parsedUrl = url.parse(data.socket.url, true);
const shout_id = parsedUrl.query.shout_id;
console.debug(`parsed socket url shout_id extracted: ${shout_id}`);
const shout_id = parseInt(data.documentName.replace('shout-', ''), 10)
console.debug(`shout_id extracted: ${shout_id}`);
const params = {
token_type: 'access_token',