Skip to content

Commit 1c4866b

Browse files
committed
Update secrets.py
1 parent a46b825 commit 1c4866b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/backend-server/app/managers/secrets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ def count_documents(db, query):
5757

5858
def get_project_secrets_count(db, data_type, project_id):
5959
return count_documents(
60-
db, {"project_id": project_id, "data_type": data_type, "access": {"$ne": False}}
60+
db,
61+
{"project_id": project_id, "secret_type": data_type, "access": {"$ne": False}},
6162
)

0 commit comments

Comments
 (0)