Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid authored Nov 9, 2021
1 parent 612ffc0 commit 491938f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update-officer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const updateOfficer = async () => {
['Term to Overwrite']: term,
['Overwrite Officer Position Title']: title,
['Overwrite Officer Picture']: picture,
} = JSON.parse(config().parsed.FORM_DATA);
} = JSON.parse(process.env.FORM_DATA);
const isValidName = name?.trim().length > 0 ?? false;
if (!isValidName) {
console.error(`Received invalid officer name ${name}.`);
Expand Down Expand Up @@ -89,6 +89,7 @@ const updateOfficer = async () => {
};

try {
config();
const success = await updateOfficer();
if (success) process.exit(0);
// eslint-disable-next-line no-empty
Expand Down

1 comment on commit 491938f

@vercel
Copy link

@vercel vercel bot commented on 491938f Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.