@rdyl/node-mysql 0.4.4 → 0.4.5
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/CHANGELOG.md +1 -1
- package/dist/helper.js +1 -2
- package/package.json +1 -1
- package/types/type.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/helper.js
CHANGED
|
@@ -97,8 +97,7 @@ var BaseHelper = /** @class */ (function () {
|
|
|
97
97
|
if (relatedFields.length) {
|
|
98
98
|
/* 单个角色对象 */
|
|
99
99
|
relatedFields.forEach(function (n) {
|
|
100
|
-
var _a = _this.related[n], related = _a.related, ownerId = _a.ownerId, fields = _a.fields, iTable = _a.table, isArray = _a.isArray;
|
|
101
|
-
var relatedId = "".concat(n, "Id");
|
|
100
|
+
var _a = _this.related[n], related = _a.related, ownerId = _a.ownerId, fields = _a.fields, iTable = _a.table, isArray = _a.isArray, _b = _a.relatedId, relatedId = _b === void 0 ? "".concat(n, "Id") : _b;
|
|
102
101
|
var fieldsSql = "\n".concat(fields
|
|
103
102
|
.map(function (e) { return " '".concat(e, "', ").concat(iTable, ".").concat(toDbName(e)); })
|
|
104
103
|
.join(",\n"), "\n");
|
package/package.json
CHANGED