@itrocks/mysql 0.0.6 → 0.0.8
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/cjs/mysql.js +4 -0
- package/esm/mysql.js +4 -0
- package/package.json +1 -1
package/cjs/mysql.js
CHANGED
|
@@ -189,6 +189,9 @@ class Mysql extends storage_1.DataSource {
|
|
|
189
189
|
if (value === depends.ignoreTransformedValue)
|
|
190
190
|
continue;
|
|
191
191
|
object[property] = value;
|
|
192
|
+
if (property.endsWith('_id')) {
|
|
193
|
+
delete object[property.slice(0, -3)];
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
return object;
|
|
194
197
|
}
|
|
@@ -210,3 +213,4 @@ class Mysql extends storage_1.DataSource {
|
|
|
210
213
|
}
|
|
211
214
|
exports.default = Mysql;
|
|
212
215
|
exports.Mysql = Mysql;
|
|
216
|
+
//# sourceMappingURL=mysql.js.map
|
package/esm/mysql.js
CHANGED
|
@@ -186,6 +186,9 @@ export default class Mysql extends DataSource {
|
|
|
186
186
|
if (value === depends.ignoreTransformedValue)
|
|
187
187
|
continue;
|
|
188
188
|
object[property] = value;
|
|
189
|
+
if (property.endsWith('_id')) {
|
|
190
|
+
delete object[property.slice(0, -3)];
|
|
191
|
+
}
|
|
189
192
|
}
|
|
190
193
|
return object;
|
|
191
194
|
}
|
|
@@ -205,3 +208,4 @@ export default class Mysql extends DataSource {
|
|
|
205
208
|
return [record, deferred];
|
|
206
209
|
}
|
|
207
210
|
}
|
|
211
|
+
//# sourceMappingURL=mysql.js.map
|
package/package.json
CHANGED