Merge pull request #30539 from overleaf/mfb-promisify-cooldown-manager

promisify cooldown manager

GitOrigin-RevId: 88c8c7d7e306042524ecd400fb15527206472cb1
This commit is contained in:
Maria Florencia Besteiro Gonzalez
2026-01-12 10:10:02 +01:00
committed by Copybot
parent 29f5026dda
commit 3261ffa4d0
7 changed files with 20 additions and 211 deletions
@@ -554,7 +554,7 @@ async function _putElement(project, folderId, element, type, userId) {
{ projectId: project._id },
'project too big, stopping insertions'
)
CooldownManager.putProjectOnCooldown(project._id)
await CooldownManager.putProjectOnCooldown(project._id)
throw new Error('project_has_too_many_files')
}