bot-api/src/index.ts

13 lines
346 B
TypeScript
Raw Normal View History

import populateDatabase from "../tests/populateDatabase";
import { startApp } from "./app";
await startApp();
// This try carch is to prevent hot reload from making the process die due to coliding entries
try {
// Not insert test data into production
2024-01-06 11:57:22 +00:00
if (process.env.NODE_ENV != "production") {
await populateDatabase();
}
} catch {}