From 55f406bb794a17d779b0b70038136cebc45713b5 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 24 Apr 2019 16:56:43 +0800 Subject: [PATCH] Follow up to 845b68f9abfad82226a4bd90ce3d7cecd1f99357. --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 87bc14d39da..0453578e889 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base remap_scope ||= begin Post.with_deleted - .where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'") + .where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\\d{1}/'") .select(:raw, :cooked) .all end