add model

This commit is contained in:
Peter Maquiran
2023-07-11 10:25:16 +01:00
parent 2fdffbecf9
commit 12178d6c3a
10 changed files with 76 additions and 71 deletions
+2 -2
View File
@@ -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