diff --git a/app/workers/extract_fulltext_job.rb b/app/workers/extract_fulltext_job.rb index f7cb031c71..c299b8b452 100644 --- a/app/workers/extract_fulltext_job.rb +++ b/app/workers/extract_fulltext_job.rb @@ -39,15 +39,11 @@ class ExtractFulltextJob < ApplicationJob end def perform + return unless OpenProject::Database.allows_tsv? return unless @attachment = find_attachment(@attachment_id) init - - if OpenProject::Database.allows_tsv? - update - else - attachment.update(fulltext: @text) - end + update end private