Skip to content

Commit

Permalink
Do not expect dict in project.latest_project_files.file_history_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Nov 7, 2024
1 parent eec1deb commit c31320d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/mergin/sync/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def __init__(
latest_files_map = {
fh.path: fh.id
for fh in FileHistory.query.filter(
FileHistory.id.in_(self.project.latest_project_files.file_history_ids)
FileHistory.id.in_(self.project.latest_project_files.file_history_ids or {})
).all()
}

Expand Down

0 comments on commit c31320d

Please sign in to comment.