Skip to content

Commit

Permalink
fix: add "MongoNetworkError" to the list of connection errors (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j authored Feb 9, 2020
1 parent 170cd06 commit 5ca4808
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getName } from "@commodo/name";
import LambdaClient from "aws-sdk/clients/lambda";
import { EJSON } from "bson";

const MONGO_CONNECTION_ERRORS = ['MongoServerSelectionError'];
const MONGO_CONNECTION_ERRORS = ["MongoServerSelectionError", "MongoNetworkError"];

class DbProxyClient {
dbProxyFunctionName: string;
Expand Down

0 comments on commit 5ca4808

Please sign in to comment.