Fix comparing dates
This commit is contained in:
parent
2cc9c2e0cd
commit
1b955f06ed
@ -31,7 +31,7 @@ function checkDate() {
|
||||
console.log(`${formattedTime}: available date ${date_avail}; booked on ${date_booked}`);
|
||||
|
||||
// Compare the dates
|
||||
if (date_avail_date > date_booked_date) {
|
||||
if (date_avail_date < date_booked_date) {
|
||||
const message = `available date ${date_avail}; booked on ${date_booked}`;
|
||||
sendPostRequest(message);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user