Fix failure in filterItemFunc while updating Matrix rooms and looking for Gitter room sd
Fix failure in filterItemFunc while updating Matrix rooms and looking for Gitter room sd
2023-02-02T06:27:58.933Z - error: Error occured while updating bridged rooms message=Cannot read property 'type' of undefined, stack=TypeError: Cannot read property 'type' of undefined
at concurrentQueue.processFromGenerator.async.value (./scripts/utils/ensure-existing-bridged-matrix-rooms-up-to-date.js:155:25)
at ConcurrentQueue._processItem (./scripts/utils/gitter-to-matrix-historical-import/concurrent-queue.js:123:9)
at ./scripts/utils/gitter-to-matrix-historical-import/concurrent-queue.js:83:22
at async Promise.all (index 5)
at async ConcurrentQueue.processFromGenerator (./scripts/utils/gitter-to-matrix-historical-import/concurrent-queue.js:102:5)
at async updateAllRooms (./scripts/utils/ensure-existing-bridged-matrix-rooms-up-to-date.js:147:3)
at async run (./scripts/utils/ensure-existing-bridged-matrix-rooms-up-to-date.js:240:5), name=TypeError
Example room without a security descriptor: 564793c016b6c7089cbab9b4
db.troupes.findOne({ _id: ObjectId('564793c016b6c7089cbab9b4') })
{
"_id" : ObjectId("564793c016b6c7089cbab9b4"),
"githubId" : 46145300,
"githubType" : "REPO",
"userCount" : 0,
"dateLastSecurityCheck" : ISODate("2015-11-14T20:04:16.540Z"),
"security" : "PUBLIC",
"topic" : "",
"uri" : "/influyentes.org",
"lcOwner" : "",
"lcUri" : "/influyentes.org",
"__v" : 1,
"_tv" : 1,
"bans" : [ ],
"oneToOneUsers" : [ ],
"providers" : [ ],
"status" : "ACTIVE",
"tags" : [ ],
"renamedLcUris" : [
"citizensproject/citizens"
]
}
Part of #2857 (closed)
Edited by Eric Eastwood