MOBILE-4304 h5p: Fix async delete
parent
26bf15496d
commit
368bf02bc2
|
@ -201,14 +201,14 @@ export class CoreH5PFileStorage {
|
||||||
|
|
||||||
const result = await db.execute(query, queryArgs);
|
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 {
|
try {
|
||||||
// Delete the index.html.
|
// Delete the index.html.
|
||||||
await this.deleteContentIndex(entry.foldername, site.getId());
|
await this.deleteContentIndex(entry.foldername, site.getId());
|
||||||
} catch {
|
} catch {
|
||||||
// Ignore errors.
|
// Ignore errors.
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue