mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
p2p instant question sending fixes
This commit is contained in:
parent
977c118da8
commit
f047701106
9 changed files with 75 additions and 56 deletions
|
@ -85,7 +85,7 @@ export const handleQuestionsToPeers = async (
|
|||
http: peer.http,
|
||||
path: '/api/isAdding',
|
||||
bodyObject: dataToSend,
|
||||
cookies: `sessionID=${sessionCookie}`,
|
||||
cookie: `sessionID=${sessionCookie}`,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -115,6 +115,7 @@ export const handleQuestionsToPeers = async (
|
|||
|
||||
if (res.error || !res.data?.success) {
|
||||
results.errors.push(peer)
|
||||
console.error('AAAAAAAAAAAAAAAAAAAAAAA')
|
||||
console.error(res.error || JSON.stringify(res.data))
|
||||
} else if (res.data?.totalNewQuestions > 0) {
|
||||
results.hasNew.push(peer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue