mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #3162 from overleaf/spd-upgrade-users-async-limit
Make ASYNC_LIMIT configurable when upgrading institution users GitOrigin-RevId: 566dd7d1e742c196847196c98449becea264719e
This commit is contained in:
committed by
Copybot
parent
69d4a83bd4
commit
6f46034b62
@@ -10,7 +10,7 @@ const SubscriptionLocator = require('../Subscription/SubscriptionLocator')
|
||||
const { Institution } = require('../../models/Institution')
|
||||
const { Subscription } = require('../../models/Subscription')
|
||||
|
||||
const ASYNC_LIMIT = 10
|
||||
const ASYNC_LIMIT = parseInt(process.env.ASYNC_LIMIT, 10) || 5
|
||||
module.exports = {
|
||||
upgradeInstitutionUsers(institutionId, callback) {
|
||||
async.waterfall(
|
||||
|
||||
Reference in New Issue
Block a user