pis #12

Merged
fred.boniface merged 95 commits from pis into main 2023-05-06 21:54:51 +01:00
Showing only changes of commit 1cc7e19681 - Show all commits

View File

@ -42,9 +42,9 @@ async function addUser(uuid, domain) { // Needs testing
return res; return res;
} }
async function addRegReq(uuid) { // Needs testing async function addRegReq(uuid, domain) { // Needs testing
log.out(`dbAccess.addRegReq: Adding registration request`) log.out(`dbAccess.addRegReq: Adding registration request`)
let doc = {uuid: uuid, time: new Date} let doc = {uuid: uuid, time: new Date, domain: domain}
await client.connect(); await client.connect();
let col = db.collection("registrations"); let col = db.collection("registrations");
res = col.insertOne(doc); res = col.insertOne(doc);