Fix comparing dates
This commit is contained in:
1 parent
2cc9c2e0cd
commit
1b955f06ed
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user