@plusscommunities/pluss-core-aws 2.0.25-beta.3 → 2.0.25-beta.5

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.
@@ -22,6 +22,7 @@ const moment = require("moment");
22
22
  const indexQueryRecursive = require("../db/common/indexQueryRecursive");
23
23
  const updateRef = require("../db/common/updateRef");
24
24
  const editRef = require("../db/common/editRef");
25
+ const { log } = require("./index");
25
26
 
26
27
  // Raw DocumentClient for atomic-increment operations that editRef can't do
27
28
  // safely under concurrent stream-handler invocations.
@@ -41,6 +42,8 @@ const DEFAULT_PROTECTED_FIELDS = [
41
42
  "PublishedToSites", // HQ-only field; copies don't carry the multi-site list
42
43
  "UnsentNotification", // each copy's notification state is independent
43
44
  "Deleted", // cascadeHqRetract is the dedicated path; propagateHqEdit must not touch this
45
+ "UnixTimestamp", // per-copy fan-out timestamp; HQ-source MODIFY must not rewind copies' feed position
46
+ "UnixTimestampReverse", // ↳ paired with UnixTimestamp; same rationale (used as feed-sort key on community sites)
44
47
  ];
45
48
 
46
49
  // ---------------------------------------------------------------------------
@@ -334,16 +337,15 @@ const incrementTemplateUseCount = async (templateId, contentLibraryTable) => {
334
337
  // Graceful degradation while Story C (contentLibrary table) is
335
338
  // unshipped — see AC-B.3. Not an error; the rest of the stream
336
339
  // handler should continue.
337
- console.log(
338
- "incrementTemplateUseCount: contentLibrary table not found — skipped (Story C not yet shipped)",
340
+ log(
341
+ "incrementTemplateUseCount",
342
+ "TableNotFound",
343
+ "contentLibrary table not found — skipped",
339
344
  );
340
345
  return false;
341
346
  }
342
347
  // Anything else is genuinely unexpected — surface it.
343
- console.error(
344
- "incrementTemplateUseCount: unexpected error",
345
- error,
346
- );
348
+ log("incrementTemplateUseCount", "Error", error);
347
349
  throw error;
348
350
  }
349
351
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "2.0.25-beta.3",
3
+ "version": "2.0.25-beta.5",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",