pull/403/head
Rebecca-Chou 10 months ago
parent 79c5005652
commit 0f15953979
  1. 6
      lib/team.ts

@ -79,9 +79,9 @@ export async function getExec(fileName: string, convert = true) {
"05": "Systems Administrator",
};
const lastName =
fileName.split("-")[1][0].toUpperCase() + fileName.split("-")[1].slice(1);
const firstName =
fileName.split("-")[1][0].toUpperCase() + fileName.split("-")[1].slice(1);
const lastName =
fileName.split("-")[2][0].toUpperCase() + fileName.split("-")[2].slice(1);
const posOrder = fileName.split("-")[0];
const pos = posDict[posOrder];
@ -104,7 +104,7 @@ export async function getExec(fileName: string, convert = true) {
({ content, metadata } = {
content: "Coming soon!",
metadata: {
name: `${lastName} ${firstName}`,
name: `${firstName} ${lastName}`,
role: `${pos}`,
},
});

Loading…
Cancel
Save