@itrocks/mysql 0.0.7 → 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 +3 -0
- package/esm/mysql.js +3 -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
|
}
|
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
|
}
|
package/package.json
CHANGED