Finish logging
This commit is contained in:
parent
0e66a015e8
commit
095a50b9a4
6 changed files with 53 additions and 42 deletions
|
|
@ -72,9 +72,10 @@ export class Logger {
|
|||
public logQuestions(answers: string[], isKQ: boolean = false) {
|
||||
const uid = store.getState().uid;
|
||||
|
||||
this.database.ref(uid).set({
|
||||
[`${isKQ ? 'knowledge' : 'general'}Questions`]: answers,
|
||||
});
|
||||
this.database
|
||||
.ref(uid)
|
||||
.child(`${isKQ ? 'knowledge' : 'general'}Questions`)
|
||||
.set(answers);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue