mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-13 22:56:18 +00:00
test bugfix
This commit is contained in:
parent
3e76c55801
commit
b0782ed74e
@ -98,15 +98,9 @@ function checkKeyMatch(dt,tn,key){
|
|||||||
}
|
}
|
||||||
function reqjt(tn,tc){
|
function reqjt(tn,tc){
|
||||||
user=firebase.auth().currentUser;
|
user=firebase.auth().currentUser;
|
||||||
dict={}
|
|
||||||
firebase.firestore().collection('teamData').doc('joinCodes').get().then(function(doc){
|
firebase.firestore().collection('teamData').doc('joinCodes').get().then(function(doc){
|
||||||
if (doc.exists) {
|
if (doc.exists) {
|
||||||
dict=doc.data();
|
dict=doc.data();
|
||||||
} else {
|
|
||||||
// doc.data() will be undefined in this case
|
|
||||||
console.log("No such document!");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (checkKeyMatch(dict,tn,tc)){
|
if (checkKeyMatch(dict,tn,tc)){
|
||||||
push={};
|
push={};
|
||||||
push[tn]='scout';
|
push[tn]='scout';
|
||||||
@ -128,6 +122,12 @@ function reqjt(tn,tc){
|
|||||||
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)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// doc.data() will be undefined in this case
|
||||||
|
console.log("No such document!");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function signout() {
|
function signout() {
|
||||||
|
Loading…
Reference in New Issue
Block a user