mm_os 1.5.7 → 1.5.9
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/core/com/sql/drive.js +5 -3
- package/package.json +1 -1
package/core/com/sql/drive.js
CHANGED
|
@@ -623,11 +623,13 @@ Drive.prototype.get_format = async function(db) {
|
|
|
623
623
|
if (o.table) {
|
|
624
624
|
if (!o.list || o.list.length == 0) {
|
|
625
625
|
dbs.table = o.table;
|
|
626
|
-
|
|
626
|
+
if (!o.id) {
|
|
627
|
+
o.id = o.key;
|
|
628
|
+
}
|
|
629
|
+
o.list = await dbs.getSql(o.where, null, o.id + "," + o.name);
|
|
627
630
|
if (o.id !== o.key) {
|
|
628
|
-
o.list
|
|
631
|
+
o.list.map((m) => {
|
|
629
632
|
m[o.key] = m[o.id];
|
|
630
|
-
return m;
|
|
631
633
|
});
|
|
632
634
|
}
|
|
633
635
|
}
|