pis #12
@ -42,9 +42,9 @@ async function addUser(uuid, domain) { // Needs testing
|
||||
return res;
|
||||
}
|
||||
|
||||
async function addRegReq(uuid) { // Needs testing
|
||||
async function addRegReq(uuid, domain) { // Needs testing
|
||||
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();
|
||||
let col = db.collection("registrations");
|
||||
res = col.insertOne(doc);
|
||||
|
Loading…
Reference in New Issue
Block a user