diff --git a/src/database/connectDb.ts b/src/database/connectDb.ts index bf53afae..65d5b27b 100644 --- a/src/database/connectDb.ts +++ b/src/database/connectDb.ts @@ -6,7 +6,7 @@ import { errorHandler } from '../utils/errorHandler'; export const connectDb = async (bot: ExtendedClient) => { // DigitalOcean Apps has cert as environment variable but Mongo needs a file path // Write Mongo cert file to disk - fs.writeFileSync('cert.pem', process.env.CA_CERT!); + // fs.writeFileSync('cert.pem', process.env.CA_CERT!); no longer needed should remove try { await connect(bot.config.dbUri);