mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
Revert "Register models in frappe.init"
This reverts commit 8a9ece2d2b
.
This commit is contained in:
parent
8a9ece2d2b
commit
cb8a26fe4c
4
index.js
4
index.js
@ -1,13 +1,9 @@
|
|||||||
const common = require('./common');
|
|
||||||
const models = require('./models');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
async init() {
|
async init() {
|
||||||
if (this._initialized) return;
|
if (this._initialized) return;
|
||||||
this.initConfig();
|
this.initConfig();
|
||||||
this.initGlobals();
|
this.initGlobals();
|
||||||
this.registerLibs(common);
|
|
||||||
this.registerModels(models);
|
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user