Skip to content

Commit

Permalink
Update analysis.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl authored Nov 28, 2024
1 parent 3b3cec1 commit 5b90729
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const { Analysis, Services, Utils, Resources } = require("@tago-io/sdk");
const dayjs = require("dayjs");

async function myAnalysis(context) {
async function startAnalysis(context) {
// Transform all Environment Variable to JSON.
const env = Utils.envToJson(context.environment);

Expand Down Expand Up @@ -105,7 +105,7 @@ async function myAnalysis(context) {
}
}

module.exports = new Analysis(myAnalysis);
Analysis.use(startAnalysis);

// To run analysis on your machine (external)
// module.exports = new Analysis(myAnalysis, { token: "YOUR-TOKEN" });
// Analysis.use(myAnalysis, { token: "YOUR-TOKEN" });

0 comments on commit 5b90729

Please sign in to comment.