Skip to content

Commit

Permalink
Fix typo when checking for REST plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpacker authored and ryanblock committed Mar 26, 2024
1 parent 922dfcb commit 2cf98c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sam/compat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2cf98c9

Please sign in to comment.