Bump async to 3.2.2 (#7618)
[all] Upgrade async package to 3.2.2 - [web] Fix usages of async library - [project-history] Fix usage of async library - [third-party-references] Fix usage of async library - [track-changes] Fix usage of async library Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: June Kelly <june.kelly@overleaf.com> GitOrigin-RevId: 90cf132f13da53b2bd6690ee3cdf4d6c8563ecd2
This commit is contained in:
committed by
Copybot
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
June Kelly
parent
2dce428d89
commit
d55f4dfafa
@@ -72,7 +72,7 @@ module.exports = ExportsHandler = {
|
||||
// TODO: when we update async, signature will change from (cb, results) to (results, cb)
|
||||
rootDoc: [
|
||||
'project',
|
||||
(cb, results) =>
|
||||
(results, cb) =>
|
||||
ProjectRootDocManager.ensureRootDocumentIsValid(
|
||||
project_id,
|
||||
function (error) {
|
||||
|
||||
@@ -778,7 +778,7 @@ const ProjectController = {
|
||||
},
|
||||
brandVariation: [
|
||||
'project',
|
||||
(cb, results) => {
|
||||
(results, cb) => {
|
||||
if (
|
||||
(results.project != null
|
||||
? results.project.brandVariationId
|
||||
|
||||
@@ -95,7 +95,7 @@ module.exports = ProjectRootDocManager = {
|
||||
let doc = null
|
||||
|
||||
return async.until(
|
||||
() => doc != null || files.length === 0,
|
||||
cb => cb(null, doc != null || files.length === 0),
|
||||
function (cb) {
|
||||
const file = files.shift()
|
||||
return fs.readFile(
|
||||
|
||||
@@ -62,7 +62,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
},
|
||||
recurlySubscription: [
|
||||
'personalSubscription',
|
||||
(cb, { personalSubscription }) => {
|
||||
({ personalSubscription }, cb) => {
|
||||
if (
|
||||
personalSubscription == null ||
|
||||
personalSubscription.recurlySubscription_id == null ||
|
||||
@@ -79,7 +79,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
],
|
||||
recurlyCoupons: [
|
||||
'recurlySubscription',
|
||||
(cb, { recurlySubscription }) => {
|
||||
({ recurlySubscription }, cb) => {
|
||||
if (!recurlySubscription) {
|
||||
return cb(null, null)
|
||||
}
|
||||
@@ -89,7 +89,7 @@ function buildUsersSubscriptionViewModel(user, callback) {
|
||||
],
|
||||
plan: [
|
||||
'personalSubscription',
|
||||
(cb, { personalSubscription }) => {
|
||||
({ personalSubscription }, cb) => {
|
||||
if (personalSubscription == null) {
|
||||
return cb()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user