mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
3487ddbc81
commit
7939abdcab
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue