improve log

This commit is contained in:
Pete Matsyburka
2025-05-03 13:59:15 +03:00
parent 5f5dabd0e5
commit 5b1a4ebffd
7 changed files with 47 additions and 33 deletions
@@ -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"] })