mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-27 09:28:12 +03:00
13 lines
311 B
TypeScript
13 lines
311 B
TypeScript
import { SetIndexesForDB } from "./resets";
|
|
import { monkDB } from "external/mongo/db";
|
|
|
|
SetIndexesForDB()
|
|
.then(monkDB.close)
|
|
.then(() => process.exit(0))
|
|
.catch((err) => {
|
|
// we might not *have* a working logger here
|
|
// eslint-disable-next-line no-console
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|