Fix ambiguous column names in `tootctl search deploy` (#18993)

lolsob-rspec
Mashiro 2022-08-18 05:07:12 +08:00 committed by GitHub
parent 3b21b1e7bc
commit 82bb94d132
1 changed files with 1 additions and 1 deletions

View File

@ -84,6 +84,6 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
end
def local_statuses_scope
Status.local.select('id, coalesce(reblog_of_id, id) as status_id')
Status.local.select('"statuses"."id", COALESCE("statuses"."reblog_of_id", "statuses"."id") AS status_id')
end
end