mirror of
https://github.com/makeplane/plane.git
synced 2026-01-30 02:09:01 -06:00
[WEB-4796] fix: update MongoDB collection check to use 'is not None' for better clarity #7671
This commit is contained in:
@@ -67,7 +67,7 @@ def flush_to_mongo_and_delete(
|
||||
mongo_archival_failed = False
|
||||
|
||||
# Try to insert into MongoDB if available
|
||||
if mongo_collection and mongo_available:
|
||||
if mongo_collection is not None and mongo_available:
|
||||
try:
|
||||
mongo_collection.bulk_write([InsertOne(doc) for doc in buffer])
|
||||
except BulkWriteError as bwe:
|
||||
|
||||
Reference in New Issue
Block a user