(node:9804) UnhandledPromiseRejectionWarning: MongoError: Topology closed at NativeTopology.close (/Users/NAME/node_modules/mongodb/lib/core/sdam/topology.js:325:38) at /Users/NAME/node_modules/mongodb/lib/mongo_client.js:267:21 at maybePromise (/Users/NAME/node_modules/mongodb/lib/utils.js:719:3) at MongoClient.close (/Users/NAME/node_modules/mongodb/lib/mongo_client.js:248:10) at /Users/NAME/node_modules/mongoose/lib/connection.js:711:20 at new Promise () at NativeConnection.Connection.openUri (/Users/NAME/node_modules/mongoose/lib/connection.js:709:19) at Mongoose.connect (/Users/NAME/node_modules/mongoose/lib/index.js:335:15) at Object. (/Users/NAME/Desktop/Coding/commands/daily.js:8:10) at Module._compile (internal/modules/cjs/loader.js:1133:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) at Module.load (internal/modules/cjs/loader.js:977:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) at Module.require (internal/modules/cjs/loader.js:1019:19) at require (internal/modules/cjs/helpers.js:77:18) at /Users/NAME/Desktop/Coding/index.js:29:21 (node:9804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)