herdst_worker 0.1.13 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '02193d09ac1bb8582882d36e937425623cf00768c1be911be7a857609e889099'
4
- data.tar.gz: 8ce2b6a8f69a84daf820ff98510f3f20f8544108ab64f4a2fc0a0795fad2c846
3
+ metadata.gz: 50cad009fea342f5f2147973c292ecf89fbbb65f983b33339b6c6855d0d8bda7
4
+ data.tar.gz: f8fb82c44f454d776b6290253d61e3fe01aa0f31ee360850d5a0b0987f054d0a
5
5
  SHA512:
6
- metadata.gz: 2dfb5f43c264f4c3c28304e64948603bd4e817b947b04f5adf7d29c588624b3ca9f4ef0f67e13490965e11350d0bb955a4cd7f25791e2c66dd34f2127090a137
7
- data.tar.gz: a74f224e8782bbfab17d1a2ffb2f579a281ef3a7077e3e3b26621c29eb188d080407c4ac5c3fe886bdd380b66eac74e4aec2af2760873452d0bf86be026cadc6
6
+ metadata.gz: e3739b02330d9775b7730793ebdc1beffc29e65e4c799cb4a85be82491d972442165f1451d9c06a3877a307c5046dac007b5f2ab92a1c6d03b568131cf5f9d86
7
+ data.tar.gz: d2e59aa54ef5d07ac44425757f63e99f32078ae3e91cd01a47d1f64d08dc27a51f8d8d04cb9d076be8b97106b957685ca8f338ec76c33abad97cc7bcd9e6e3fd
@@ -103,7 +103,7 @@ module HerdstWorker
103
103
  data[:app_id] = company.id
104
104
  data[:app_name] = company.name
105
105
  data[:app_slug] = company.get_host_name
106
- data[:app_brand_id] = company.brand_id
106
+ data[:app_theme] = company.get_brand
107
107
  data[:app_host] = company.get_url
108
108
  data[:type] = "email"
109
109
  data[:template] = template
@@ -101,6 +101,19 @@ module HerdstWorker
101
101
  }
102
102
  end
103
103
 
104
+ if message["source"] != nil and message["source"].starts_with?("aws.")
105
+ action_name = message["source"].split(".").last
106
+
107
+ message_record = message.dup
108
+ message_record["configurationId"] = "Event#{action_name.camelize}"
109
+ message_record["sentTimestamp"] = sent_timestamp
110
+ message_record["triggerTimestamp"] = trigger_timestamp || sent_timestamp
111
+
112
+ return Concurrent::Promise.new {
113
+ execute_message!(nil, nil, message_record)
114
+ }
115
+ end
116
+
104
117
  return Concurrent::Promise.new {}
105
118
  end
106
119
 
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.15'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport