()
| 288 | } |
| 289 | |
| 290 | async function seedDatabase() { |
| 291 | try { |
| 292 | await seedUsers(); |
| 293 | await seedCourses(); |
| 294 | await seedContent(); |
| 295 | await seedCourseContent(); |
| 296 | await seedNotionMetadata(); |
| 297 | await seedVideoMetadata(); |
| 298 | await seedPurchases(); |
| 299 | await addClassesFromAugustToMay(); |
| 300 | } catch (error) { |
| 301 | console.error('Error seeding database:', error); |
| 302 | throw error; |
| 303 | } finally { |
| 304 | await db.$disconnect(); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | seedDatabase().catch((error) => { |
| 309 | console.error('An unexpected error occurred during seeding:', error); |
no test coverage detected