mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-28 01:10:54 +01:00
13 lines
267 B
TypeScript
13 lines
267 B
TypeScript
|
|
import { database } from "../driver";
|
||
|
|
import { seedDataAsync } from "./seed";
|
||
|
|
|
||
|
|
seedDataAsync(database)
|
||
|
|
.then(() => {
|
||
|
|
console.log("Seed complete");
|
||
|
|
process.exit(0);
|
||
|
|
})
|
||
|
|
.catch((err) => {
|
||
|
|
console.log("Seed failed\n\t", err);
|
||
|
|
process.exit(1);
|
||
|
|
});
|