pg-mvc-service 2.0.91 → 2.0.92
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.
|
@@ -454,7 +454,7 @@ class TableModel {
|
|
|
454
454
|
const datas = yield this.clientQuery(sql, refValues);
|
|
455
455
|
if (datas.rows[0].count == "0") {
|
|
456
456
|
const name = ref.columns.map(col => { var _a; return (_a = this.getColumn(col.target).alias) !== null && _a !== void 0 ? _a : this.getColumn(col.target).columnName; }).join(',');
|
|
457
|
-
this.
|
|
457
|
+
this.throwUnprocessableException("007", this.errorMessages.fk.replace('{name}', name));
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
}
|
package/package.json
CHANGED
package/src/models/TableModel.ts
CHANGED
|
@@ -534,7 +534,7 @@ export class TableModel {
|
|
|
534
534
|
const datas = await this.clientQuery(sql, refValues);
|
|
535
535
|
if (datas.rows[0].count == "0") {
|
|
536
536
|
const name = ref.columns.map(col => this.getColumn(col.target).alias ?? this.getColumn(col.target).columnName).join(',');
|
|
537
|
-
this.
|
|
537
|
+
this.throwUnprocessableException("007", this.errorMessages.fk.replace('{name}', name))
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|