fix error

This commit is contained in:
邱博亞 2023-02-27 23:46:01 +08:00
parent d02d5a7c40
commit a73145f038
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
namespace :personal_journal do
desc 'set_journal_type'
task :set_journal_type do |task,args|
task :set_journal_type => :environment do |task,args|
JournalPaper.where(:rss2_id.ne=>nil).update_all({"$unset"=>{"journal_type_ids"=>""}})
MemberTag.all.each do |mt|
journal_type = JournalType.where(:title=>mt.title).first