MOBILE-4304 h5p: Fix async delete

main
Noel De Martin 2024-01-18 13:57:36 +01:00
parent 26bf15496d
commit 368bf02bc2
1 changed files with 2 additions and 2 deletions

View File

@ -201,14 +201,14 @@ export class CoreH5PFileStorage {
const result = await db.execute(query, queryArgs);
await Array.from(result.rows).map(async (entry: {foldername: string}) => {
await Promise.all(Array.from(result.rows).map(async (entry: {foldername: string}) => {
try {
// Delete the index.html.
await this.deleteContentIndex(entry.foldername, site.getId());
} catch {
// Ignore errors.
}
});
}));
}
/**