Skip to content

Commit

Permalink
Update to mongo-models 3.x.x and update dependencies (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCooper authored and jedireza committed Jun 4, 2019
1 parent b758608 commit e6f6555
Show file tree
Hide file tree
Showing 6 changed files with 2,309 additions and 1,092 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
const Hoek = require('hoek');

const Hoek = require('@hapi/hoek');
const MongoModels = require('mongo-models');


Expand Down Expand Up @@ -31,7 +32,7 @@ const register = async function (server, options) {
const indexJobs = options.models
.map((path) => modelModules[path])
.filter((model) => Boolean(model.indexes))
.map((model) => model.createIndexes.call(model, model.indexes));
.map((model) => model.createIndexes(model.indexes));

await Promise.all(indexJobs);

Expand Down
Loading

0 comments on commit e6f6555

Please sign in to comment.