Skip to content

Commit e179b29

Browse files
committed
Fix avs issues including transhash
1 parent cd1a705 commit e179b29

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/commonhandler.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,16 @@ export class CommonConnection {
456456
if (index === 0 && cmd.tempOut) {
457457
ret.tempOut = cmd.tempOut
458458
}
459+
// we need also to update the translation table
460+
const update = {
461+
/* $addToSet: {
462+
remoteClients: args.lectureuuid + ':' + args.clientid
463+
} */
464+
}
465+
update.$set = {}
466+
update.$set['transHash.' + mid] = majorid
467+
update.$set['transHash.' + cid] = clientidpure
468+
await routercol.updateOne({ url: ele.url }, update)
459469
return { data: ret, key: ele.key }
460470
})
461471
.map(async (ele) => {
@@ -629,9 +639,9 @@ export class CommonConnection {
629639
if (!dprimary) setprimary = true
630640
}
631641
const update = {
632-
$addToSet: {
642+
/* $addToSet: {
633643
localClients: args.lectureuuid + ':' + args.clientid
634-
}
644+
} */
635645
}
636646
const calcHash = async (input) => {
637647
const hash = createHash('sha256')

0 commit comments

Comments
 (0)