Skip to content

Conversation

@SimonImbrogno
Copy link

Collapse async calls to run concurrently where possible.

Copy link
Contributor

@KyleBrownCS KyleBrownCS left a comment

Choose a reason for hiding this comment

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

Didn't run it to test, but looks good

Copy link
Owner

@James-Firth James-Firth left a comment

Choose a reason for hiding this comment

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

Looks good just needs a manual test on the live deployment :)

Copy link
Owner

@James-Firth James-Firth left a comment

Choose a reason for hiding this comment

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

Looks like something wasn't working :(

async function generateAndSendBootMessage(channel = null, { msgText = null } = {}) {
const { available, benched } = await users.listAllUserNamesByAvailability();
const SHA = await simpleGit.revparse(['HEAD']);
const [{ availableUsers, benchedUsers }, SHA] = await Promise.all([
Copy link
Owner

Choose a reason for hiding this comment

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

I think there's an edge-case here.

it generated the initial boot message fine but then admins saying overview was giving an empty list back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants