@plusscommunities/pluss-core-aws 2.0.20-beta.1 → 2.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,17 +4,11 @@ const sendEmail = require("./sendEmail");
4
4
  const isActionConditionMet = (action, args = {}) => {
5
5
  if (!action) return false;
6
6
  if (!action?.Condition) return true;
7
- console.log("isActionConditionMet", {
8
- type: action.Condition.type,
9
- value: args[action.Condition.type],
10
- toMatch: action.Condition.value,
11
- });
12
7
  return args[action.Condition.type] === action.Condition.value;
13
8
  };
14
9
 
15
10
  module.exports = async (site, trigger, args = {}) => {
16
11
  const actions = await getActionBySiteTrigger(site, trigger);
17
- console.log("triggerAutomatedAction", actions);
18
12
  for await (const action of actions) {
19
13
  if (!isActionConditionMet(action, args)) continue;
20
14
 
@@ -28,11 +22,11 @@ module.exports = async (site, trigger, args = {}) => {
28
22
  content = content.replace(`__${key}__`, args[key]);
29
23
  email = email.replace(`__${key}__`, args[key]);
30
24
  });
31
- console.log("triggerAutomatedAction - email", {
32
- subject,
33
- content,
34
- email,
35
- });
25
+ // console.log("triggerAutomatedAction - email", {
26
+ // subject,
27
+ // content,
28
+ // email,
29
+ // });
36
30
  await sendEmail(email, subject, content);
37
31
  break;
38
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "2.0.20-beta.1",
3
+ "version": "2.0.20",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",