Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Oct 25, 2024
2 parents 4199956 + 33b264a commit d63e4ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/workers/update_xudt_info_with_unique_cell_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ def perform(xudt_type_hash, unique_cell_data)
udt = Udt.find_by(type_hash: xudt_type_hash)
if udt && udt.symbol.blank? && udt.full_name.blank? && udt.decimal.blank?
info = CkbUtils.parse_unique_cell(unique_cell_data)
info[:published] = true
udt.update!(info)
udt.update!(full_name: info[:name], symbol: info[:symbol], decimal: info[:decimal], published: true)
end
end
end

0 comments on commit d63e4ed

Please sign in to comment.