fix: api and orm

This commit is contained in:
pateljannat
2021-06-02 20:19:36 +05:30
parent 4fd7af053b
commit 671b4a0650
5 changed files with 30 additions and 18 deletions

View File

@@ -1,10 +1,10 @@
frappe.ready(() => {
console.log($(".title").hasClass("is_mentor"))
if (!$(".title").hasClass("is_mentor")) {
frappe.call({
method: "community.lms.doctype.lesson.lesson.save_progress",
args: {
lesson: $(".title").attr("data-name")
lesson: $(".title").attr("data-name"),
batch: $(".title").attr("data-batch")
}
})
}