mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix get_last_version
This commit is contained in:
parent
1cea16b97b
commit
6fcf872237
1 changed files with 4 additions and 0 deletions
|
|
@ -655,6 +655,10 @@ def get_last_versions(project_name, subset_ids, fields=None):
|
|||
doc["_version_id"]
|
||||
for doc in conn.aggregate(_pipeline)
|
||||
]
|
||||
fields = _prepare_fields(fields)
|
||||
if fields and "parent" not in fields:
|
||||
fields.append("parent")
|
||||
|
||||
version_docs = get_versions(
|
||||
project_name, version_ids=version_ids, fields=fields
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue