@ccci/micro-server 1.0.171 → 1.0.173

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -297652,7 +297652,7 @@ function ConstructQuery(query) {
297652
297652
  let includes = [];
297653
297653
  let toplevel = data.filter((el) => el.indexOf(".") == -1);
297654
297654
  toplevel.forEach((top) => {
297655
- let association = { association: top };
297655
+ let association = { association: top, required: true };
297656
297656
  if (query.search) {
297657
297657
  const queries = query.search.split(",");
297658
297658
  Logger.info(`queries: ${JSON.stringify(queries)}`);
@@ -297666,9 +297666,9 @@ function ConstructQuery(query) {
297666
297666
  Logger.info(`pair: ${JSON.stringify(pair)}`);
297667
297667
  let associationkey = pair[0];
297668
297668
  Logger.info(`associationkey: ${JSON.stringify(associationkey)}`);
297669
- association.where = {};
297670
- association.where[associationkey] = pair[1];
297671
- Logger.info(`association.where: ${JSON.stringify(association.where)}`);
297669
+ association.through = { where: {} };
297670
+ association.through.where[associationkey] = pair[1];
297671
+ Logger.info(`association.where: ${JSON.stringify(association)}`);
297672
297672
  }
297673
297673
  }
297674
297674
  includes.push(association);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",