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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user