improve log

This commit is contained in:
Pete Matsyburka committed 2025-05-03 16:30:11 +03:00
1 parent 5f5dabd0e5
commit 5b1a4ebffd
7 files changed
+47 -33

No files matched your search

@@ -12,6 +12,8 @@ class PreviewDocumentPageController < ActionController::API
return head :not_found unless attachment
@template = attachment.record
preview_image = attachment.preview_images.joins(:blob)
.find_by(blob: { filename: ["#{params[:id]}.png", "#{params[:id]}.jpg"] })