Skip to content

Commit

Permalink
Merge pull request #22 from zanerock/work-liquid-labs/liq-controls/21
Browse files Browse the repository at this point in the history
Update to latest playgroundMonitor API
  • Loading branch information
zanerock authored Nov 26, 2023
2 parents 687278c + d7932b0 commit f135e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/integrations/get-question-controls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as fsPath from 'node:path'
import yaml from 'js-yaml'

const getQuestionControls = async({ app, controlsName, projectName, reporter }) => {
const { pkgJSON, projectPath } = app.ext._liqProjects.playgroundMonitor.getProjectData(projectName)
const { packageJSON, projectPath } = await app.ext._liqProjects.playgroundMonitor.getProjectData(projectName)

const packageControlsPath = fsPath.join(projectPath, 'controls', controlsName + '.qcontrols.yaml')
let controlsContent
Expand All @@ -25,7 +25,7 @@ const getQuestionControls = async({ app, controlsName, projectName, reporter })
let [orgKey, basename] = projectName.split('/')
if (basename === undefined) {
// then we have an unscoped project and we look at the package.json to determine the org key
orgKey = pkgJSON._comply?.orgKey
orgKey = packageJSON._comply?.orgKey
if (orgKey === undefined) {
throw new Error("Did not find expected '_comply.orgKey' in the 'package.json' file. This value must be defined for unscoped packages.")
}
Expand Down

0 comments on commit f135e42

Please sign in to comment.