fix: api and orm
This commit is contained in:
@@ -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")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user