Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Try to run recursiveDelete in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGresse committed Apr 2, 2024
1 parent 0f618e9 commit 7e9ff29
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions scripts/openplanner/import-speakers-sessions-schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,26 @@ const cleanupScheduleSessionSpeakers = async () => {
deleteCollection('generatedSessions'),
deleteCollection('generatedSpeakers')
]);
// await Promise.all([
// deleteCollection('schedule'),
// deleteCollection('sessions'),
// deleteCollection('speakers'),
// deleteCollection('partners'),
// deleteCollection('team')
// ]);
await Promise.all([
deleteCollection('schedule'),
deleteCollection('sessions'),
deleteCollection('speakers'),
deleteCollection('partners'),
deleteCollection('team')
]);
console.log('Cleanup done');
};

getSpeakersSessionsScheduleSponsorFromUrl(url)
.then(async (data) => {
await cleanupScheduleSessionSpeakers();
await Promise.all([
importSessions(data),
importSpeakers(data),
importSchedule(data),
importSponsors(data),
importTeam(data.team)
]);
// await Promise.all([
// importSessions(data),
// importSpeakers(data),
// importSchedule(data),
// importSponsors(data),
// importTeam(data.team)
// ]);
return data;
})
.then(() => {
Expand Down

0 comments on commit 7e9ff29

Please sign in to comment.