Merge pull request #16186 from overleaf/mj-mongo-object-id
[web] Use constructor for ObjectId GitOrigin-RevId: 9eb8b377ea599605b72af237d1ab12f4d8287162
This commit is contained in:
committed by
Copybot
parent
0ac514f81b
commit
c371732e6e
@@ -52,9 +52,9 @@ describe('ConvertArchivedState', function () {
|
||||
})
|
||||
projectThree = await userOne.getProject(projectThreeId)
|
||||
projectThree.archived = [
|
||||
ObjectId(userOne._id),
|
||||
ObjectId(userTwo._id),
|
||||
ObjectId(userFour._id),
|
||||
new ObjectId(userOne._id),
|
||||
new ObjectId(userTwo._id),
|
||||
new ObjectId(userFour._id),
|
||||
]
|
||||
projectThree.collaberator_refs.push(userTwo._id)
|
||||
projectThree.tokenAccessReadOnly_refs.push(userFour._id)
|
||||
|
||||
Reference in New Issue
Block a user