Merge pull request #14878 from overleaf/tm-compile-timeout-20s-split-test-fix

Fix for incorrect split test assignment function calls

GitOrigin-RevId: e942ee78a2a5fb3a6a50b6f73eb212afdccbe63d
This commit is contained in:
John Lees-Miller 2023-09-18 13:09:07 +01:00 committed by Copybot
parent 3487ddbc81
commit 7939abdcab

View file

@ -74,13 +74,13 @@ async function joinProject(req, res, next) {
// Compile timeout 20s test
if (project.features?.compileTimeout <= 60) {
const compileAssignment =
await SplitTestHandler.promises.getAssignmentForMongoUser(
await SplitTestHandler.promises.getAssignmentForUser(
project.owner._id,
'compile-backend-class-n2d'
)
if (compileAssignment?.variant === 'n2d') {
const timeoutAssignment =
await SplitTestHandler.promises.getAssignmentForMongoUser(
await SplitTestHandler.promises.getAssignmentForUser(
project.owner._id,
'compile-timeout-20s'
)