Skip to content

Commit

Permalink
Merge branch 'main' into nodejs-version
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrec committed Oct 12, 2023
2 parents ffd0ff5 + 077eab6 commit cb2cfa6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/jobs/drafts/load_content_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def load_message_draft_objects(message_draft, objects_path, signed:, to_be_signe
message_object: message_draft_object,
blob: File.read(File.join(objects_path, file_name))
)

NestedMessageObject.create_from_message_object(message_draft_object)
end
end

Expand Down
2 changes: 0 additions & 2 deletions app/models/govbox/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def self.create_message_objects(message, raw_message)
blob: message_object_content,
message_object_id: message_object.id
)

NestedMessageObject.create_from_message_object(message_object)
end
end

Expand Down
2 changes: 0 additions & 2 deletions app/models/message_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def self.create_message_objects(message, objects)
message_object: message_object,
blob: message_object_content
)

NestedMessageObject.create_from_message_object(message_object)
end
end

Expand Down
2 changes: 2 additions & 0 deletions app/models/message_object_datum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@

class MessageObjectDatum < ApplicationRecord
belongs_to :message_object

after_save_commit { NestedMessageObject.create_from_message_object(message_object) }
end

0 comments on commit cb2cfa6

Please sign in to comment.