From 1dc493c2d50af3074431762812fe087ae5a409e3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 27 Sep 2022 00:39:23 +0200 Subject: [PATCH] :fire: Remove assets handler code for :db backend --- backend/src/app/http/assets.clj | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/src/app/http/assets.clj b/backend/src/app/http/assets.clj index 3a0bf2144..0fd6d1510 100644 --- a/backend/src/app/http/assets.clj +++ b/backend/src/app/http/assets.clj @@ -52,13 +52,6 @@ (let [mdata (meta obj) backend (sto/resolve-backend storage (:backend obj))] (case (:type backend) - :db - (p/let [body (sto/get-object-bytes storage obj)] - (yrs/response :status 200 - :body body - :headers {"content-type" (:content-type mdata) - "cache-control" (str "max-age=" (inst-ms cache-max-age))})) - :s3 (p/let [{:keys [host port] :as url} (sto/get-object-url storage obj {:max-age signature-max-age})] (yrs/response :status 307