webspresso 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @module plugins/admin-panel/admin-user-model
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
const { defineModel } = require('
|
|
8
|
-
const { zdb } = require('
|
|
7
|
+
const { defineModel } = require('../../core/orm/model');
|
|
8
|
+
const { zdb } = require('../../core/orm');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* AdminUser model schema
|
|
@@ -23,7 +23,7 @@ const AdminUserSchema = zdb.schema({
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Create and register AdminUser model
|
|
26
|
-
* @returns {import('
|
|
26
|
+
* @returns {import('../../core/orm/types').ModelDefinition}
|
|
27
27
|
*/
|
|
28
28
|
function createAdminUserModel() {
|
|
29
29
|
return defineModel({
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module plugins/admin-panel/api
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
const { getAllModels, getModel } = require('
|
|
7
|
+
const { getAllModels, getModel } = require('../../core/orm/model');
|
|
8
8
|
const { checkAdminExists, setupAdmin, login, logout, requireAuth } = require('./auth');
|
|
9
9
|
|
|
10
10
|
/**
|