Skip to content

Commit 1bbcd18

Browse files
🐛 Update legacy integration handling in index.ts
1 parent 808664b commit 1bbcd18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const run = async () => {
4747
config("integrations")[integration.name].frequency === "daily"
4848
) {
4949
console.log("Updating", integration.name);
50-
if (process.env.MODE === "legacy" && "legacy" in integration && typeof integration.legacy === "function")
51-
await integration.legacy();
50+
if (typeof process.env.LEGACY === "string" && "legacy" in integration && typeof integration.legacy === "function")
51+
await integration.legacy(process.env.LEGACY as string);
5252
else await integration.update();
5353
} else {
5454
console.log("Skipping", integration.name);

0 commit comments

Comments
 (0)