use uuid when id not found
This commit is contained in:
@@ -12,6 +12,7 @@ const {
|
||||
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
|
||||
const SlidingCaptchaSolver = require("./SlidingCaptchaSolver");
|
||||
const OCRChecker = require("./OCRChecker");
|
||||
const crypto = require("crypto");
|
||||
// const RDV_URL = "http://192.168.0.44:8000/test_appointment.html"
|
||||
const RDV_URL = "https://rendezvousparis.hermes.com/client/register";
|
||||
const BLANK_URL = "about:blank"
|
||||
@@ -560,6 +561,9 @@ class CommandorPage {
|
||||
async push_message_to_db(publishType, url) {
|
||||
let splitedUrl = url.split("/");
|
||||
let id = splitedUrl[splitedUrl.length - 1];
|
||||
if (id === "register") {
|
||||
id = crypto.randomUUID()
|
||||
}
|
||||
if (url === "https://rendezvousparis.hermes.com/client/welcome") {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user