chore: checkpoint before cross assistant work

This commit is contained in:
DCCONSTRUCTIONS
2026-06-09 11:33:47 +03:00
parent 2ad9e7f85c
commit 14caa50088
9 changed files with 849 additions and 150 deletions
@@ -263,7 +263,7 @@ class IssueAttachmentV2Endpoint(BaseAPIView):
existing_beam_viewer = attributes.get("beamViewer")
if not isinstance(existing_beam_viewer, dict):
return Response(
{"error": "The attachment is not a Beam Viewer reference.", "status": False},
{"error": "The attachment is not a BIM Viewer reference.", "status": False},
status=status.HTTP_400_BAD_REQUEST,
)
@@ -271,6 +271,9 @@ class IssueAttachmentV2Endpoint(BaseAPIView):
**existing_beam_viewer,
**beam_viewer,
}
for attribute_key in ("name", "size", "type", "version"):
if attribute_key in request.data:
attributes[attribute_key] = request.data.get(attribute_key)
issue_attachment.attributes = attributes
issue_attachment.is_uploaded = True
issue_attachment.save(update_fields=["attributes", "is_uploaded", "updated_at"])