mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
fix structure
This commit is contained in:
parent
b5d8851c44
commit
0684f982b7
@ -106,7 +106,9 @@ function reqjt(tn,tc){
|
|||||||
push[tn]='scout';
|
push[tn]='scout';
|
||||||
firebase.firestore().collection("UserAssociations").doc(user.uid).set(push, {
|
firebase.firestore().collection("UserAssociations").doc(user.uid).set(push, {
|
||||||
merge: true
|
merge: true
|
||||||
}).then(function(doc) {
|
}).then(function() {
|
||||||
|
teamAssoc = firebase.firestore().collection('UserAssociations').doc(user.uid)
|
||||||
|
teamAssoc.get().then(function(doc) {
|
||||||
if (doc.exists) {
|
if (doc.exists) {
|
||||||
list = doc.data()
|
list = doc.data()
|
||||||
teamNums = Object.keys(list)
|
teamNums = Object.keys(list)
|
||||||
@ -118,6 +120,7 @@ function reqjt(tn,tc){
|
|||||||
document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
|
document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
alert("You don't have a correct join key. Please check it and try again.")
|
alert("You don't have a correct join key. Please check it and try again.")
|
||||||
console.log(dict)
|
console.log(dict)
|
||||||
|
Loading…
Reference in New Issue
Block a user