adonis-mqrepository
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "adonis-mqrepository", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"private": false, | ||
"main": "./BaseRepository.js" | ||
} | ||
} |
@@ -64,3 +64,6 @@ 'use strict' | ||
let type = await this.getTypeofField(filter.id) | ||
if(value != null && value.customType){ | ||
if(value == null){ | ||
//skip null value | ||
} | ||
else if(value.customType){ | ||
let condition = this.buildFilterCustomType(value.customType, value) | ||
@@ -78,6 +81,4 @@ if(condition) conditions[filter.id] = condition | ||
else if(type == "boolean"){ | ||
if(filter.value != null){ | ||
value = typeof filter.value == "string" ? filter.value.toLowerCase() : filter.value | ||
conditions[filter.id] = [true,"true","1",1].includes(value) | ||
} | ||
} | ||
@@ -84,0 +85,0 @@ else{ |
13287
373