Skip to content
New issue

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

Fix example for loop in authorization documentation #374

Merged
merged 1 commit into from
Jan 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_advanced/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const installations = [

const authorizeFn = async ({ teamId, enterpriseId }) => {
// Fetch team info from database
for (const team in installations) {
for (const team of installations) {
// Check for matching teamId and enterpriseId in the installations array
if ((team.teamId === teamId) && (team.enterpriseId === enterpriseId)) {
// This is a match. Use these installation credentials.
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/ja_authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const installations = [

const authorizeFn = async ({ teamId, enterpriseId }) => {
// データベースから team 情報を取得
for (const team in installations) {
for (const team of installations) {
// installations 配列から teamId と enterpriseId が一致するかチェック
if ((team.teamId === teamId) && (team.enterpriseId === enterpriseId)) {
// 一致したワークスペースの認証情報を使用
Expand Down