We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45d60b commit 9b24922Copy full SHA for 9b24922
1 file changed
appsTeacher/groups/app.js
@@ -321,10 +321,12 @@ module.exports = function init(site) {
321
if (_data.type == "validDay") {
322
let date = new Date(_data.date);
323
console.log(date,_data.date);
324
-
+
325
let index = doc.dayList.findIndex(
326
(itm) => new Date(itm.date).getDate() === date.getDate() && new Date(itm.date).getMonth() === date.getMonth() && new Date(itm.date).getFullYear() === date.getFullYear() && !itm.isBook
327
);
328
+ console.log(doc.dayList);
329
330
if (index !== -1) {
331
if (!doc.dayList[index].isBook) {
332
result.validDay = doc.dayList[index];
0 commit comments