manage accepted appointments

This commit is contained in:
2022-10-16 23:41:20 +02:00
parent b27cf3c806
commit c79c45db8a
6 changed files with 49 additions and 13 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const {
shell
} = require('electron')
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
// const RDV_URL = "http://192.168.0.44:8000/test_appointment.html"
// const RDV_URL = "http://192.168.0.41:8000/test_appointment.html"
const RDV_URL = "https://rendezvousparis.hermes.com/client/register";
BLANK_URL = "about:blank"
const ERROR_CAPTCHA_UNSOLVABLE = "ERROR_CAPTCHA_UNSOLVABLE";
+4
View File
@@ -41,6 +41,10 @@ class MongoManager {
return await this.db.collection(day).find().toArray()
}
async getAllAcceptedAppointments() {
return await this.db.collection(ACCEPTED_APPOINTMENT_LIST).find().toArray()
}
async saveReserveToDb(reservePojo) {
let collectionName = formatDate(new Date())
return await this.db.collection(collectionName).replaceOne({'_id': reservePojo.id,}, reservePojo, {upsert: true})