@galadrim/galadmin 0.1.220 → 0.1.222

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galadrim/galadmin",
3
- "version": "0.1.220",
3
+ "version": "0.1.222",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/src/api.ts CHANGED
@@ -56,7 +56,7 @@ export default (db, config, user) => {
56
56
  } else if (columns[i].name) {
57
57
  queryString += columns[i].name.split(".").map(x => db.dbType === "POSTGRESQL" ? x : ("`" + x + "`")).join(".")
58
58
  }
59
- queryString += `${db.dbType === "MYSQL" ? " COLLATE utf8mb4_general_ci" : ""} LIKE '%${params.query.replace(/'/g, "\\'")}%'`
59
+ queryString += " LIKE '%" + params.query.replace(/'/g, "\\'") + "%'"
60
60
  isNewCondition = false;
61
61
  }
62
62
  }
@@ -949,7 +949,7 @@ export default (db, config, user) => {
949
949
  zipCode: etablissement.codepostaletablissement,
950
950
  activityNumber: etablissement.activiteprincipaleunitelegale,
951
951
  }))
952
- .slice(0, 10)
952
+ .slice(0, 30)
953
953
  res.send(results)
954
954
  } catch (e) {
955
955
  res.send([])