@ccci/micro-server 1.0.175 → 1.0.177

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 +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -297621,13 +297621,13 @@ function ConstructQuery(query) {
297621
297621
  });
297622
297622
  }
297623
297623
  if (query.scan) {
297624
- where2["_search"] = { [Op.match]: Sequelize.fn("to_tsquery", query.scan) };
297624
+ where2["_search"] = { [Op.match]: Sequelize.fn("phraseto_tsquery", query.scan) };
297625
297625
  }
297626
297626
  options.where = where2;
297627
297627
  }
297628
297628
  if (!query.search && query.scan) {
297629
297629
  let where2 = {};
297630
- where2["_search"] = { [Op.match]: Sequelize.fn("to_tsquery", query.scan) };
297630
+ where2["_search"] = { [Op.match]: Sequelize.fn("phraseto_tsquery", query.scan) };
297631
297631
  options.where = where2;
297632
297632
  }
297633
297633
  if (query.paginate != "false") {
@@ -297662,6 +297662,7 @@ function ConstructQuery(query) {
297662
297662
  let pair = nested2[1].split(":");
297663
297663
  let associationkey = pair[0];
297664
297664
  association.through = { where: {} };
297665
+ Logger.info(`pair[1] :>>`, pair[1]);
297665
297666
  association.through.where[associationkey] = JSON.parse(pair[1]);
297666
297667
  association.required = true;
297667
297668
  Logger.info(`association.where: ${JSON.stringify(association)}`);
@@ -297683,7 +297684,6 @@ function ConstructQuery(query) {
297683
297684
  }
297684
297685
  includes.push(temp);
297685
297686
  });
297686
- Logger.info(`INCLUDES: ${JSON.stringify(includes)}`);
297687
297687
  options.includes = includes;
297688
297688
  }
297689
297689
  if (query.paranoid) {
@@ -297793,7 +297793,6 @@ class BaseController {
297793
297793
  try {
297794
297794
  let query = req.query;
297795
297795
  let options = ConstructQuery(query);
297796
- Logger.info(`WHERE CLAUSE: ${JSON.stringify(options.where)}`);
297797
297796
  let response4 = null;
297798
297797
  if (!response4) {
297799
297798
  response4 = await this._model?.findAndCountAll({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.175",
3
+ "version": "1.0.177",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",