drapi 1.8.53 → 1.8.54
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/lib/models.js +0 -2
- package/package.json +1 -1
package/lib/models.js
CHANGED
|
@@ -7,7 +7,6 @@ const db = require('./db');
|
|
|
7
7
|
const structure = require('../api/models/structure');
|
|
8
8
|
const controllers = require('../api/models/model');
|
|
9
9
|
const trigger = require('../api/models/trigger');
|
|
10
|
-
const sizeof = require('object-sizeof')
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* connectionschema = {
|
|
@@ -65,7 +64,6 @@ let models = {
|
|
|
65
64
|
modelSchema.plugin(mongooseLogs, {schemaName:model,createAction:"Creó",updateAction:"Actualizó",deleteAction:"Eliminó"});
|
|
66
65
|
// }
|
|
67
66
|
connectionschema[dbname][model] = modelSchema;
|
|
68
|
-
console.log("tamaño de schemas almacenados en memoria: ", sizeof(connectionschema));
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
return connection.model(model, connectionschema[dbname][model]);
|