@plusscommunities/pluss-core-aws 2.0.25-beta.4 → 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.
@@ -336,16 +337,15 @@ const incrementTemplateUseCount = async (templateId, contentLibraryTable) => {
336
337
  // Graceful degradation while Story C (contentLibrary table) is
337
338
  // unshipped — see AC-B.3. Not an error; the rest of the stream
338
339
  // handler should continue.
339
- console.log(
340
- "incrementTemplateUseCount: contentLibrary table not found — skipped (Story C not yet shipped)",
340
+ log(
341
+ "incrementTemplateUseCount",
342
+ "TableNotFound",
343
+ "contentLibrary table not found — skipped",
341
344
  );
342
345
  return false;
343
346
  }
344
347
  // Anything else is genuinely unexpected — surface it.
345
- console.error(
346
- "incrementTemplateUseCount: unexpected error",
347
- error,
348
- );
348
+ log("incrementTemplateUseCount", "Error", error);
349
349
  throw error;
350
350
  }
351
351
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "2.0.25-beta.4",
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",