2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

Renamed to skipDocumentCache

This commit is contained in:
Piyush Singhania 2022-01-11 19:10:32 +05:30
parent 89592070b5
commit 9459b66148

View File

@ -226,8 +226,8 @@ module.exports = {
return this.metaCache[doctype];
},
async getDoc(doctype, name, options = {skipCacheDocument: false}) {
let doc = options.skipCacheDocument ? null : this.getDocFromCache(doctype, name);
async getDoc(doctype, name, options = {skipDocumentCache: false}) {
let doc = options.skipDocumentCache ? null : this.getDocFromCache(doctype, name);
if (!doc) {
doc = new (this.getDocumentClass(doctype))({
doctype: doctype,