Skip to content

Commit 6490a83

Browse files
committed
変数の名前の修正
1 parent f508a2e commit 6490a83

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/store/modules/user.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export class UserStore extends VuexModule implements User {
6868
.doc(user.uid)
6969
.get()
7070

71-
const allowAccessData: string[] = data.get('allow_access')
72-
const allowAccess = []
73-
for (const value of allowAccessData) {
71+
const allowAccessClassIds: string[] = data.get('allow_access')
72+
const allowAccessData: AllowAccessData[] = []
73+
for (const value of allowAccessClassIds) {
7474
const classData = await firebase
7575
.firestore()
7676
.collection('classData')
@@ -81,7 +81,7 @@ export class UserStore extends VuexModule implements User {
8181
.collection('editorClassData')
8282
.doc(value)
8383
.get()
84-
allowAccess.push({
84+
allowAccessData.push({
8585
classId: value,
8686
schoolName: editorClassData.get('schoolName'),
8787
className: classData.get('className')
@@ -92,7 +92,7 @@ export class UserStore extends VuexModule implements User {
9292
email: user.email ? user.email : '',
9393
emailVerified: user.emailVerified,
9494
displayName: data.get('username'),
95-
allowAccess,
95+
allowAccess: allowAccessData,
9696
uid: user.uid
9797
})
9898
}
@@ -105,9 +105,9 @@ export class UserStore extends VuexModule implements User {
105105
.doc(user.user_id)
106106
.get()
107107

108-
const allowAccessData: string[] = data.get('allow_access')
109-
const allowAccess = []
110-
for (const value of allowAccessData) {
108+
const allowAccessClassIds: string[] = data.get('allow_access')
109+
const allowAccessData: AllowAccessData[] = []
110+
for (const value of allowAccessClassIds) {
111111
const classData = await firebase
112112
.firestore()
113113
.collection('classData')
@@ -118,7 +118,7 @@ export class UserStore extends VuexModule implements User {
118118
.collection('editorClassData')
119119
.doc(value)
120120
.get()
121-
allowAccess.push({
121+
allowAccessData.push({
122122
classId: value,
123123
schoolName: editorClassData.get('schoolName'),
124124
className: classData.get('className')
@@ -129,7 +129,7 @@ export class UserStore extends VuexModule implements User {
129129
email: user.email,
130130
emailVerified: user.emailVerified,
131131
displayName: data.get('username'),
132-
allowAccess,
132+
allowAccess: allowAccessData,
133133
uid: user.user_id
134134
})
135135
}

0 commit comments

Comments
 (0)