2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00

Revert "Register models in frappe.init"

This reverts commit 8a9ece2d2b.
This commit is contained in:
Faris Ansari 2018-06-04 15:32:38 +05:30
parent 8a9ece2d2b
commit cb8a26fe4c

View File

@ -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;
}, },