mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add model
This commit is contained in:
@@ -400,7 +400,7 @@ Model.object = ({ queryId, DBconfig, TableSchema, some = null }) => {
|
||||
methods[queryId] = [];
|
||||
const result = await ModelAPIRequest.obj(DBconfig, TableSchema).execute(_methods, queryId);
|
||||
resolve(result);
|
||||
for (let i of result) {
|
||||
for (let i in result) {
|
||||
result[i] = _a.newInstance({ TableSchema, DBconfig, dataToMerge: result[i] });
|
||||
}
|
||||
});
|
||||
@@ -424,7 +424,7 @@ Model.object = ({ queryId, DBconfig, TableSchema, some = null }) => {
|
||||
methods[queryId] = [];
|
||||
const result = await ModelAPIRequest.obj(DBconfig, TableSchema).all(_methods, queryId);
|
||||
resolve(result);
|
||||
for (let i of result) {
|
||||
for (let i in result) {
|
||||
result[i] = _a.newInstance({ TableSchema, DBconfig, dataToMerge: result[i] });
|
||||
}
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user