Skip to content

Instantly share code, notes, and snippets.

View pswami's full-sized avatar

Pauras Swami pswami

View GitHub Profile
diff --git a/app/services/p2p/message/base.rb b/app/services/p2p/message/base.rb
index 5e8d961793fc..601231ed1d9f 100644
--- a/app/services/p2p/message/base.rb
+++ b/app/services/p2p/message/base.rb
@@ -24,12 +24,17 @@ module P2p
# be sent to another Procore instance. The `resource` parameter is the resource
# that is being shared. The `project_connection` is the target for where
# the resource should send to. The send_message method doesn't return anything.
- def send_message(resource:, project_connection: nil)
+ def send_message(data:, project_connection: nil, header_thread_id: nil)
diff --git a/app/services/p2p/message/base.rb b/app/services/p2p/message/base.rb
index 5e8d961793fc..d7904cc73845 100644
--- a/app/services/p2p/message/base.rb
+++ b/app/services/p2p/message/base.rb
@@ -24,14 +24,19 @@ module P2p
# be sent to another Procore instance. The `resource` parameter is the resource
# that is being shared. The `project_connection` is the target for where
# the resource should send to. The send_message method doesn't return anything.
- def send_message(resource:, project_connection: nil)
+ def send_message(data:, project_connection: nil, header_thread_id: nil)