Skip to content

Commit a34aa57

Browse files
authored
Merge pull request #54 from zecrypt-io/preview
Update secrets.py
2 parents dd54f86 + 1c4866b commit a34aa57

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)