@tmlmobilidade/databases 20260618.457.26 → 20260618.507.0

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.
@@ -56,7 +56,7 @@ export class ClickHouseInterfaceTemplate {
56
56
  * @returns A promise that resolves to an array of distinct values matching the query.
57
57
  */
58
58
  async distinct(field, where, params) {
59
- const result = await queryFromString(this.client, `SELECT ${String(field)} FROM "${this.databaseName}"."${this.tableName}" WHERE ${where}`, params);
59
+ const result = await queryFromString(this.client, `SELECT DISTINCT ${String(field)} FROM "${this.databaseName}"."${this.tableName}" WHERE ${where}`, params);
60
60
  return result.map(doc => doc[field]);
61
61
  }
62
62
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/databases",
3
- "version": "20260618.457.26",
3
+ "version": "20260618.507.0",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"