MCPcopy Index your code
hub / github.com/wei/pull / disconnectMongoDB

Function disconnectMongoDB

src/configs/database.ts:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13};
14
15export const disconnectMongoDB = async () => {
16 await mongoose.disconnect();
17 log.info("[MongoDB] Disconnected");
18};

Callers 3

handleAppTerminationFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected