zet-lib 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/connection.js +3 -2
- package/package.json +1 -1
package/lib/connection.js
CHANGED
|
@@ -94,20 +94,21 @@ const whereFn = (obj) => {
|
|
|
94
94
|
if (item.option.includes('{{value}}')) {
|
|
95
95
|
item.option = item.option.replace('{{value}}', `$${increment}`)
|
|
96
96
|
wherequery += `${andOr} ${field} ${item.option} ${operator}`
|
|
97
|
+
increment++
|
|
97
98
|
} else if (item.option.includes('$')) {
|
|
98
99
|
wherequery += `${andOr} ${field} ${item.option} ${operator}`
|
|
100
|
+
increment++
|
|
99
101
|
} else {
|
|
100
102
|
wherequery += `${andOr} ${field} ${item.option} $${increment} ${operator}`
|
|
103
|
+
increment++
|
|
101
104
|
}
|
|
102
105
|
let itemValue = item.value
|
|
103
106
|
if (item.option == '=') {
|
|
104
107
|
itemValue = Util.replaceAll(itemValue + '', '%', '')
|
|
105
108
|
}
|
|
106
|
-
|
|
107
109
|
arr.push(itemValue)
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
|
-
increment++
|
|
111
112
|
})
|
|
112
113
|
//console.log(arr)
|
|
113
114
|
}
|