🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

halifier-sequelize

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

halifier-sequelize - npm Package Compare versions

Comparing version

to
0.0.6

{
"name": "halifier-sequelize",
"version": "0.0.4",
"version": "0.0.6",
"description": "sequelize adapters for halifier library",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -35,3 +35,3 @@ const R = require('ramda')

runListQuery (listMeta) {
const query = this.makeQuery(listMeta)
const query = this.transformQuery(this.makeQuery(listMeta))
let selected

@@ -58,5 +58,9 @@ return this.opts.model.findAll(query)

transformQuery (query) {
return query
}
findById (id) {
const fieldName = this.opts.idFieldName || 'id'
return this.opts.model.findOne({
const query = this.transformQuery({
where: {

@@ -66,2 +70,3 @@ [fieldName]: id

})
return this.opts.model.findOne(query)
}

@@ -68,0 +73,0 @@ }