From 2cf98c99cbfd9df82cd6ba3aa442861500298695 Mon Sep 17 00:00:00 2001 From: Jon Packer Date: Tue, 28 Nov 2023 15:35:41 +0100 Subject: [PATCH] Fix typo when checking for REST plugin --- src/sam/compat/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sam/compat/index.js b/src/sam/compat/index.js index d541ac2..109140c 100644 --- a/src/sam/compat/index.js +++ b/src/sam/compat/index.js @@ -12,7 +12,7 @@ module.exports = function compat (params, callback) { function getApiType (callback) { if (inv.http && (!inv.aws.apigateway || inv.aws.apigateway === 'rest')) { let deployPlugins = inv.plugins?._methods?.deploy?.start - let hasRestPlugin = deployPlugins?.find(({ plugin }) => plugin === 'architect/plugin-rest-api') + let hasRestPlugin = deployPlugins?.find(({ _plugin }) => _plugin === 'architect/plugin-rest-api') // Look for a legacy REST API in the stack; HTTP API resource IDs are simply 'HTTP' let resource = toLogicalID(inv.app)