folders id error fixed

This commit is contained in:
Philippe 2025-03-11 22:16:04 -04:00
parent 66ce4937d9
commit 2ca21a7d6b

View file

@ -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) {