@plusscommunities/pluss-core-aws 1.5.15 → 1.5.16

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.
@@ -1,4 +1,4 @@
1
- const indexQuery = require("../common/indexQuery");
1
+ const indexQueryRecursive = require("../common/indexQueryRecursive");
2
2
 
3
3
  module.exports = async (site, entityKey) => {
4
4
  const query = {
@@ -10,6 +10,5 @@ module.exports = async (site, entityKey) => {
10
10
  },
11
11
  };
12
12
 
13
- const { Items } = await indexQuery("actionqueue", query);
14
- return Items;
13
+ return await indexQueryRecursive("actionqueue", query);
15
14
  };
@@ -0,0 +1,20 @@
1
+ const indexQueryRecursive = require("../common/indexQueryRecursive");
2
+
3
+ module.exports = async (
4
+ site,
5
+ minTime = 0,
6
+ maxTime = Number.MAX_SAFE_INTEGER
7
+ ) => {
8
+ const query = {
9
+ IndexName: "SiteTriggerAtIndex",
10
+ KeyConditionExpression:
11
+ "Site = :site AND TriggerAt BETWEEN :minTime and :maxTime",
12
+ ExpressionAttributeValues: {
13
+ ":site": site,
14
+ ":minTime": minTime,
15
+ ":maxTime": maxTime,
16
+ },
17
+ };
18
+
19
+ return await indexQueryRecursive("actionqueue", query);
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",