Skip to content

Commit

Permalink
fix check for collection name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill-K-1 committed Jan 16, 2024
1 parent 6166548 commit 5cb15d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gov-portal-db/src/users_manager/mongo_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async fn initialize_collection(
let collection = db.collection::<Document>(collection_name);

// Create new collection (if not present in database) and unique index by wallet address
if db
if !db
.list_collection_names(None)
.await?
.into_iter()
Expand Down

0 comments on commit 5cb15d9

Please sign in to comment.