diff --git a/lib/SequelizeResolver.ts b/lib/SequelizeResolver.ts index 967390e..977273b 100644 --- a/lib/SequelizeResolver.ts +++ b/lib/SequelizeResolver.ts @@ -237,9 +237,9 @@ export class SequelizeResolver extends FabrixResolver { /** * */ - findOne(criteria, options = { }) { + findOne(criteria) { if (this._sequelizeModel) { - return this._sequelizeModel.findOne(criteria, options) + return this._sequelizeModel.findOne(criteria) } } diff --git a/package-lock.json b/package-lock.json index c2bcfbb..853256d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-sequelize", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -150,14 +150,16 @@ } }, "@types/bluebird": { - "version": "3.5.21", - "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.21.tgz", - "integrity": "sha512-6UNEwyw+6SGMC/WMI0ld0PS4st7Qq51qgguFrFizOSpGvZiqe9iswztFSdZvwJBEhLOy2JaxNE6VC7yMAlbfyQ==" + "version": "3.5.23", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.23.tgz", + "integrity": "sha512-xlehmc6RT+wMEhy9ZqeqmozVmuFzTfsaV2NlfFFWhigy7n6sjMbUUB+SZBWK78lZgWHA4DBAdQvQxUvcB8N1tw==", + "dev": true }, "@types/continuation-local-storage": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@types/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz", "integrity": "sha1-oz4N+dzptCTRyY/E/evYV43O7H4=", + "dev": true, "requires": { "@types/node": "10.3.4" } @@ -170,7 +172,8 @@ "@types/lodash": { "version": "4.14.110", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.110.tgz", - "integrity": "sha512-iXYLa6olt4tnsCA+ZXeP6eEW3tk1SulWeYyP/yooWfAtXjozqXgtX4+XUtMuOCfYjKGz3F34++qUc3Q+TJuIIw==" + "integrity": "sha512-iXYLa6olt4tnsCA+ZXeP6eEW3tk1SulWeYyP/yooWfAtXjozqXgtX4+XUtMuOCfYjKGz3F34++qUc3Q+TJuIIw==", + "dev": true }, "@types/node": { "version": "10.3.4", @@ -178,11 +181,12 @@ "integrity": "sha512-YMLlzdeNnAyLrQew39IFRkMacAR5BqKGIEei9ZjdHsIZtv+ZWKYTu1i7QJhetxQ9ReXx8w5f+cixdHZG3zgMQA==" }, "@types/sequelize": { - "version": "4.27.23", - "resolved": "https://registry.npmjs.org/@types/sequelize/-/sequelize-4.27.23.tgz", - "integrity": "sha512-swWlbr1E9cqnSfiKerhmyMlAYSAWiPJyROKHd9nadNuaF1qvZPFfCJ7bGBlhLpEQqeDPVyUSo2Guv+CP1NUY5w==", + "version": "4.27.24", + "resolved": "https://registry.npmjs.org/@types/sequelize/-/sequelize-4.27.24.tgz", + "integrity": "sha512-5uMFsMa/0hU/7/8znyfBKSJy2Mbd57uRpYk5X1+Phz9dN0MRZLbTbj1JMeB3CJ4R9b1coNQGfp2kXh4OjI9UyA==", + "dev": true, "requires": { - "@types/bluebird": "3.5.21", + "@types/bluebird": "3.5.23", "@types/continuation-local-storage": "3.2.1", "@types/lodash": "4.14.110", "@types/validator": "9.4.1" @@ -191,7 +195,8 @@ "@types/validator": { "version": "9.4.1", "resolved": "https://registry.npmjs.org/@types/validator/-/validator-9.4.1.tgz", - "integrity": "sha512-Y8UyLZvBPgckGhEIFCGBPj1tsRbpcZn4rbAp7lUxC3EW/nDR2V6t9LltE+mvDJxQQ+Bg3saE3UAwn6lsG5O1yQ==" + "integrity": "sha512-Y8UyLZvBPgckGhEIFCGBPj1tsRbpcZn4rbAp7lUxC3EW/nDR2V6t9LltE+mvDJxQQ+Bg3saE3UAwn6lsG5O1yQ==", + "dev": true }, "ansi-regex": { "version": "2.1.1", diff --git a/package.json b/package.json index 22840fb..8861467 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-sequelize", - "version": "1.1.4", + "version": "1.1.5", "description": "Spool - Datastore Spool for Sequelize.js http://sequelizejs.com", "scripts": { "build": "tsc -p ./lib/tsconfig.release.json", @@ -46,7 +46,6 @@ "url": "git+https://github.com/fabrix-app/spool-sequelize.git" }, "dependencies": { - "@types/sequelize": "^4.27.23", "joi": "^13.4.0", "lodash": "^4.17.10", "sequelize": "^4.37.10" @@ -58,6 +57,7 @@ "@fabrix/spool-tapestries": "^1.1.3", "@types/lodash": "^4.14.109", "@types/node": "~10.3.4", + "@types/sequelize": "^4.27.24", "mocha": "^5", "nyc": "^12.0.2", "pg": "^6.4.2",