Skip to content

Commit

Permalink
Fix telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Feb 23, 2023
1 parent 2a8b112 commit f907f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ class ServerlessPlugin {
uid: userConfig.get('frameworkId'), // anonymous user ID created by the Serverless Framework
};
/** @type {Record<string, any>} */
const config = this.serverless.service;
const plugins = config.plugins ? config.plugins.modules || config.plugins : [];
const config = this.serverless.configurationInput;
const plugins = this.serverless.service.plugins ? this.serverless.service.plugins.modules || this.serverless.service.plugins : [];
// Lift construct types
if (plugins.includes('serverless-lift') && typeof config.constructs === 'object') {
payload.constructs = Object.values(config.constructs)
Expand Down

0 comments on commit f907f39

Please sign in to comment.