MCPcopy Create free account
hub / github.com/code100x/cms / seedDatabase

Function seedDatabase

prisma/seed.ts:290–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288}
289
290async 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
308seedDatabase().catch((error) => {
309 console.error('An unexpected error occurred during seeding:', error);

Callers 1

seed.tsFile · 0.85

Calls 8

seedUsersFunction · 0.85
seedCoursesFunction · 0.85
seedContentFunction · 0.85
seedCourseContentFunction · 0.85
seedNotionMetadataFunction · 0.85
seedVideoMetadataFunction · 0.85
seedPurchasesFunction · 0.70

Tested by

no test coverage detected