From eaeed3b89c3e490a7b49c97bfa1b3c8f6fab3bca Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Sat, 16 Dec 2023 14:51:01 -0800 Subject: [PATCH 1/2] Fix variable name --- src/controllers/postPackagesPackageNameVersions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/postPackagesPackageNameVersions.js b/src/controllers/postPackagesPackageNameVersions.js index 5a5b4d56..eadc4a3e 100644 --- a/src/controllers/postPackagesPackageNameVersions.js +++ b/src/controllers/postPackagesPackageNameVersions.js @@ -83,7 +83,7 @@ module.exports = { context.logger.generic( 6, - `${user.content.username} Attempting to publish a new package version - ${param.packageName}` + `${user.content.username} Attempting to publish a new package version - ${params.packageName}` ); // To support a rename, we need to check if they have permissions over this From 48c2bb6f998e1194f569e2360964ba6eb4969e2e Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Sat, 16 Dec 2023 15:08:36 -0800 Subject: [PATCH 2/2] Additional bad variable name --- src/controllers/postPackagesPackageNameVersions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/postPackagesPackageNameVersions.js b/src/controllers/postPackagesPackageNameVersions.js index eadc4a3e..ed79d603 100644 --- a/src/controllers/postPackagesPackageNameVersions.js +++ b/src/controllers/postPackagesPackageNameVersions.js @@ -108,7 +108,7 @@ module.exports = { // Using our new VCS Service // TODO: The "git" service shouldn't always be hardcoded. - let packMetadata = await vcs.newVersionData(user.content, ownerRepo, "git"); + let packMetadata = await context.vcs.newVersionData(user.content, ownerRepo, "git"); if (!packMetadata.ok) { const sso = new context.sso();