fix: mongo内存泄漏

This commit is contained in:
Archer
2023-03-10 18:54:51 +08:00
parent 65da4653bc
commit 453f3be8ce
6 changed files with 69 additions and 55 deletions

9
src/types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { Mongoose } from 'mongoose';
declare global {
interface Global {
mongodb: Mongoose;
}
}
export type a = string;