Files
wehub-resource-sync 221778fa98
rowboat / apps/x Vitest suites (push) Has been cancelled
rowboat / apps/x Electron package smoke test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:33:34 +08:00

14 lines
361 B
TypeScript

import '../lib/loadenv';
import { db } from '../lib/mongodb';
import { dropAllIndexes } from "../../src/infrastructure/mongodb/drop-indexes";
async function main() {
await dropAllIndexes(db);
console.log("Indexes dropped (non-_id)");
}
main().catch((err) => {
// eslint-disable-next-line no-console
console.error(err);
process.exit(1);
});