@plusscommunities/pluss-core-aws 1.5.16 → 1.5.18-beta.0

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.
@@ -0,0 +1,25 @@
1
+ const AWS = require("aws-sdk");
2
+ const dynamoDb = new AWS.DynamoDB.DocumentClient({ convertEmptyValues: true });
3
+ const { log, generateLogId } = require("../../helper");
4
+
5
+ module.exports = (table) => {
6
+ return new Promise((resolve, reject) => {
7
+ const logId = generateLogId();
8
+ const query = {
9
+ TableName: `${process.env.tablePrefix}${table}`,
10
+ Select: "COUNT",
11
+ };
12
+
13
+ dynamoDb.scan(query, (error, result) => {
14
+ // handle potential errors
15
+ if (error) {
16
+ log("getTableCount", "Error", error, logId);
17
+ reject();
18
+ return;
19
+ } else {
20
+ resolve(result);
21
+ return;
22
+ }
23
+ });
24
+ });
25
+ };
@@ -57,10 +57,10 @@ module.exports = async (
57
57
  </div>
58
58
  <div style='margin-top: 30px;'>
59
59
  <div style='margin: 0 auto; width: fit-content;'>
60
- <div style='vertical-align: top; height: 29px; margin-right: 10px; color: #828282; display: inline-block;'>
61
- <span style=' font-size: 13px; line-height: 29px;'>powered by</span>
60
+ <div style='vertical-align: top; height: 20px; margin-right: 10px; color: #828282; display: inline-block;'>
61
+ <span style=' font-size: 13px; line-height: 20px;'>powered by</span>
62
62
  </div>
63
- <img src="https://pluss-prd-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:80aecdcb-9955-493e-a341-2f2263f64777/public/04ee254a473dab894f9a15c418/plusslogo.png" style="display: inline-block; height: 29px; width: 71px; background-repeat: no-repeat; background-size:contain;"></img>
63
+ <img src="https://pluss-prd-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:80aecdcb-9955-493e-a341-2f2263f64777/public/d99198114e20a1245693e48790/plusslogo.png" style="display: inline-block; height: 20px; width: 237px; background-repeat: no-repeat; background-size:contain;"></img>
64
64
  </div>
65
65
  </div>
66
66
  </div>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "1.5.16",
3
+ "version": "1.5.18-beta.0",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",