Skip to content

Commit

Permalink
fix: remove obsolete plan handling
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Feb 4, 2019
1 parent 797b669 commit 115100b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions jobs/registry-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ module.exports = async function (
const account = accounts[monorepo[0].value.accountId]
if (isFromHook && String(account.installation) !== installation) return {}

const plan = account.plan
const repoDoc = monorepoDocs.find(doc => doc.key === monorepo[0].value.fullName.toLowerCase())
if (!repoDoc) return
const config = getConfig(repoDoc.doc)
Expand All @@ -181,7 +180,6 @@ module.exports = async function (
versions,
account,
repositoryId: repoDoc.id,
plan,
isFromHook,
log }))
})
Expand All @@ -197,8 +195,6 @@ module.exports = async function (
jobs = [...jobs, ...(_.sortedUniqBy(filteredSortedPackages, pkg => pkg.value.fullName)
.map(pkg => {
const account = accounts[pkg.value.accountId]
if (!account.plan) { return {} }
const plan = account.plan

const satisfyingVersions = getSatisfyingVersions(versions, pkg)
const oldVersionResolved = getOldVersionResolved(satisfyingVersions, distTags, distTag)
Expand All @@ -215,12 +211,10 @@ module.exports = async function (
oldVersionResolved,
repositoryId: pkg.id,
installation: account.installation,
plan,
isFromHook
},
pkg.value
),
plan
)
}
}))
]
Expand Down
5 changes: 1 addition & 4 deletions utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function getJobsPerGroup ({
versions,
account,
repositoryId,
plan,
isFromHook,
log
}) {
Expand Down Expand Up @@ -111,16 +110,14 @@ function getJobsPerGroup ({
dependency,
versions,
repositoryId,
plan,
oldVersionResolved,
installation: account.installation,
accountId: account.id || account._id,
types,
oldVersion: monorepo[0].value.oldVersion,
monorepo: relevantMonorepoChangeFiles,
isFromHook
}),
plan
})
}
})
}
Expand Down

0 comments on commit 115100b

Please sign in to comment.