@webtypen/webframez-core 0.2.34 → 0.2.35

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.
@@ -131,7 +131,7 @@ class DataBuilder {
131
131
  else if (typeof fields[key].unique === "object") {
132
132
  isUnique = yield this.handleUnique(db, req, fields[key], type);
133
133
  }
134
- if (isUnique) {
134
+ if (!isUnique) {
135
135
  errors[fieldPath] = "Es gibt bereits einen anderen Datensatz mit diesem Wert.";
136
136
  continue;
137
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -176,7 +176,7 @@ export class DataBuilder {
176
176
  isUnique = await this.handleUnique(db, req, fields[key], type);
177
177
  }
178
178
 
179
- if (isUnique) {
179
+ if (!isUnique) {
180
180
  errors[fieldPath] = "Es gibt bereits einen anderen Datensatz mit diesem Wert.";
181
181
  continue;
182
182
  }