mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
folders id error fixed
This commit is contained in:
parent
66ce4937d9
commit
2ca21a7d6b
1 changed files with 8 additions and 4 deletions
|
|
@ -1168,6 +1168,7 @@ public async login(email: string, password: string): Promise<any> {
|
|||
|
||||
const allQuizIds: string[] = [];
|
||||
|
||||
if (Array.isArray(folders)) {
|
||||
for (const folder of folders) {
|
||||
const folderQuizzes = await this.getFolderContent(folder._id);
|
||||
|
||||
|
|
@ -1175,6 +1176,9 @@ public async login(email: string, password: string): Promise<any> {
|
|||
allQuizIds.push(...folderQuizzes.map(quiz => quiz._id));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.error('Failed to get user folders:', folders);
|
||||
}
|
||||
|
||||
return allQuizIds;
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue