manage accepted appointments
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user