change order of exec

pull/403/head
Rebecca-Chou 10 months ago
commit be43b75694
  1. 12
      lib/team.ts

@ -14,8 +14,8 @@ const { year, term } = getCurrentTerm();
const execPositions: { [name: string]: { order: number; name: string } } = {
president: { order: 1, name: "President" },
"vice-president": { order: 2, name: "Vice President" },
treasurer: { order: 3, name: "Treasurer" },
secretary: { order: 4, name: "Assistant Vice President" },
secretary: { order: 3, name: "Assistant Vice President" },
treasurer: { order: 4, name: "Treasurer" },
sysadmin: { order: 5, name: "System Administrator" },
};
@ -71,10 +71,12 @@ export async function getExecNames() {
formattedExec = execMembers.map(
(member) =>
`0${execPositions[member.position].order}-
${member.name.split(" ")[0].toLowerCase()}-
${member.name.split(" ")[1].toLowerCase()}`
`0${execPositions[member.position].order}-${member.name
.split(" ")[0]
.toLowerCase()}-${member.name.split(" ")[1].toLowerCase()}`
);
// Add a new line???
} finally {
await client.unbind();
}

Loading…
Cancel
Save