fix: Content fetching for articles and videos

This commit is contained in:
scmmishra
2019-02-27 12:09:57 +05:30
parent 628659e02a
commit 23880ae567
3 changed files with 16 additions and 3 deletions

View File

@@ -50,7 +50,10 @@ export default {
},
methods: {
getContent() {
return frappe.db.get_doc(this.type, this.content)
return lms.call('get_content', {
type: this.type,
content: this.content
})
}
}
};