13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
import { db } from "..";
|
|
import { seedDataAsync } from "./seed";
|
|
|
|
seedDataAsync(db)
|
|
.then(() => {
|
|
console.log("Seed complete");
|
|
process.exit(0);
|
|
})
|
|
.catch((err) => {
|
|
console.log("Seed failed\n\t", err);
|
|
process.exit(1);
|
|
});
|