From 7ba7bf842eb1573c8b1e7b84c9e948f8be851dcb Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 7 Jan 2026 19:36:29 -0800 Subject: [PATCH] fix: Use SignedId instead of regular ID in portal update (#13197) The Active Storage blob ids were handled inconsistently across the API. - When a new logo was uploaded, the upload controller returned a signed_id - When loading an existing portal that already had a logo, the portal model returned a blob_id. This caused the API portal API to fail. There are about 107 instances of this in production, so this change will fix that. --- app/models/portal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/portal.rb b/app/models/portal.rb index a62ba8e4d..c1d98a301 100644 --- a/app/models/portal.rb +++ b/app/models/portal.rb @@ -53,7 +53,7 @@ class Portal < ApplicationRecord file_type: logo.content_type, account_id: account_id, file_url: url_for(logo), - blob_id: logo.blob_id, + blob_id: logo.blob.signed_id, filename: logo.filename.to_s } end