Skip to content

Commit

Permalink
Fix example for loop in authorization documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
byrondover authored and seratch committed Jan 30, 2020
1 parent 2447eb0 commit 3a2f506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 3a2f506

Please sign in to comment.