Skip to content

Commit

Permalink
Updating for retryWrites false
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanStoves committed Jun 12, 2024
1 parent 5ab5e97 commit 5b9c768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# app init
app = Flask(__name__)
app.rdb = rdb = RedisIO(config.REDIS_URL)
app.mdb = mdb = PyMongo(app, config.MONGO_URL + "?retryWrites=false").db
app.mdb = mdb = PyMongo(app, config.MONGO_URL).db

CORS(app)

Expand Down
2 changes: 1 addition & 1 deletion docker/config-production.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TESTING = True if os.environ.get("TESTING") else False
ENVIRONMENT = "Production"

MONGO_URL = os.environ["MONGO_URL"]
MONGO_URL = os.environ["MONGO_URL"] + "&retryWrites=false"
REDIS_URL = os.environ["REDIS_URL"]
SENTRY_DSN = os.getenv("SENTRY_DSN")

Expand Down
2 changes: 1 addition & 1 deletion docker/config-staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TESTING = True if os.environ.get("TESTING") else False
ENVIRONMENT = "Staging"

MONGO_URL = os.environ["MONGO_URL"]
MONGO_URL = os.environ["MONGO_URL"] + "&retryWrites=false"
REDIS_URL = os.environ["REDIS_URL"]
SENTRY_DSN = os.getenv("SENTRY_DSN")

Expand Down

0 comments on commit 5b9c768

Please sign in to comment.