We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/* else case: ... */
else
src\db\controllers\installation.controller.ts installationController.ts
src\db\controllers\installation.controller.ts
findOrCreateInstallation = async (payload) => { // return type Promise<typeof Installation> try { let _installation = await this.socketFindOneById(payload.installation.id); // _installation: typeof Installation | null let _repositories: any[]; if (_installation === null) { const { installation, repositories }: { installation: OctokitTypes.Installation, repositories: OctokitTypes.Repository[] } = payload; const { id, target_id, target_type, account } = installation; const { login, organizations_url, repos_url } = account; /* maps repos for installation document to array of owner_ids */ if (repositories.length) { _repositories = repositories.map((repo: any) => repo.id); } else { /* else case: User or Org with no Repos */ _repositories = []; } /* ... */
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Problem
/* else case: ... */
are edge cases that are handled throughout development to some degree...Describe the Proposed Solution
References
else
block for a User or an Org that is being written on App Install with NO repos...src\db\controllers\installation.controller.ts
installationController.tsThe text was updated successfully, but these errors were encountered: