newStaffLDB-API #48

Merged
fred.boniface merged 85 commits from newStaffLDB-API into main 2023-10-03 21:35:03 +01:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit c7ea029c11 - Show all commits

View File

@ -24,8 +24,9 @@ async function query(collection, query, returnId = false) {
log.out(`dbAccess.query: Running Query: ${JSON.stringify(query)}`, "info"); log.out(`dbAccess.query: Running Query: ${JSON.stringify(query)}`, "info");
increment(collection); increment(collection);
log.out("dbAccess.query: Query response:"); log.out("dbAccess.query: Query response:");
console.log(await qcursor.toArray()); let result = await qcursor.toArray();
return await qcursor.toArray(); console.log(result);
return result;
} }
async function queryProject(collection, query, projection) { async function queryProject(collection, query, projection) {