Skip to content

Conversation

@hwong0305
Copy link
Collaborator

Moved Statuses API into Mapping API.

The mapping API now pings PM2 for status of domains when fetching all domains.

const fullDomainStatusMapping = domains.map(el => {
if (statusData[el.fullDomain]) {
return { ...el, status: statusData[el.fullDomain] }
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

you don't need this else cuz you are returning.

@songz songz merged commit 9584001 into garageScript:master Dec 9, 2019
@hwong0305 hwong0305 deleted the refactorStatus branch December 11, 2019 07:55
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