fix sqlite query

This commit is contained in:
Pete Matsyburka committed 2025-06-23 20:34:30 +03:00
1 parent 48e73c2c81
commit 33b14d5278
2 files changed
+3 -5

No files matched your search

@@ -55,10 +55,8 @@ class TemplatesDashboardController < ApplicationController
rel = Template.where(
Template.arel_table[:id].in(
Arel::Nodes::Union.new(
rel.where(folder_id: current_account.default_template_folder.id).select(:id).arel,
shared_template_ids.arel
)
rel.where(folder_id: current_account.default_template_folder.id).select(:id).arel
.union(shared_template_ids.arel)
)
)
else