From d0df897f934d581f1e79144b8d52eff9ea0e7a55 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 11 Jun 2024 14:01:13 +0200 Subject: [PATCH] typo --- src/apps.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/apps.js b/src/apps.js index 61d9499b8..3e641e969 100644 --- a/src/apps.js +++ b/src/apps.js @@ -2111,8 +2111,6 @@ async function getLogs(app, options) { assert.strictEqual(typeof options.format, 'string'); assert.strictEqual(typeof options.follow, 'boolean'); - if (app.manifest.id !== constants.PROXY_APP_APPSTORE_ID) throw new BoxError(BoxError.BAD_FIELD, 'upstreamUri can only be set for proxy app'); - const appId = app.id; const logPaths = await getLogPaths(app); @@ -2514,7 +2512,7 @@ async function createExec(app, options) { assert.strictEqual(typeof app, 'object'); assert(options && typeof options === 'object'); - if (app.manifest.id !== constants.PROXY_APP_APPSTORE_ID) throw new BoxError(BoxError.BAD_FIELD, 'upstreamUri can only be set for proxy app'); + if (app.manifest.id === constants.PROXY_APP_APPSTORE_ID) throw new BoxError(BoxError.BAD_FIELD, 'cannot exec on proxy app'); const cmd = options.cmd || [ '/bin/bash' ]; assert(Array.isArray(cmd) && cmd.length > 0);