debug getExecNames

pull/403/head
Rebecca-Chou 10 months ago
parent c7947d9054
commit ae0b81c4cc
  1. 7
      lib/team.ts

@ -34,7 +34,6 @@ export async function getExecNames() {
const client = new Client({ url });
let execMembers: execMembers[] = [];
let formattedExec: string[];
try {
await client.bind("", "");
@ -57,9 +56,7 @@ export async function getExecNames() {
item1.order.localeCompare(item2.order)
);
console.log(execMembers);
formattedExec = execMembers.map(
const formattedExec: string[] = execMembers.map(
(member) =>
`0${member.order}-
${member.name.split(" ")[1].toLowerCase()}-
@ -69,8 +66,6 @@ export async function getExecNames() {
await client.unbind();
}
console.log(formattedExec);
return formattedExec;
}

Loading…
Cancel
Save