@oridune/epic-odm
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@oridune/epic-odm", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Install 1 ODM and code once with any database driver.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -106,2 +106,5 @@ "use strict"; | ||
await createIndexes(Collection, (0, model_1.getModelOptions)(Embed.model).indexes, Embed.options.name); | ||
} | ||
for (const Model of this.Models) { | ||
const ModelOptions = (0, model_1.getModelOptions)(Model); | ||
await ((_a = ModelOptions.onInit) === null || _a === void 0 ? void 0 : _a.call(ModelOptions)); | ||
@@ -108,0 +111,0 @@ } |
94887
1933