Skip to content

Commit

Permalink
Use env
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmosesman committed Apr 19, 2024
1 parent 115d372 commit 14d3cf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/services/flatfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export class FlatfileService {
);
}

const workbook = workbooks.data.find((w) => w.name === "PLM Import");
const workbook = workbooks.data.find(
(w) => w.name === process.env.WORKBOOK_NAME
);

if (!workbook) {
throw new Error(
Expand Down

0 comments on commit 14d3cf7

Please sign in to comment.