Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: mongo does not need cert file (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored May 7, 2024
1 parent 87fc522 commit 02a4aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/connectDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02a4aa4

Please sign in to comment.