redisk
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -51,3 +51,3 @@ "use strict"; | ||
} | ||
if (property.searchable) { | ||
if (property.searchable && persistedEntity[property.name]) { | ||
yield this.client.srem(this.getSearchableKeyName(name, property.name), this.getSearchableValuePrefix(entity[primary]) + persistedEntity[property.name].toLowerCase()); | ||
@@ -91,3 +91,3 @@ } | ||
valuesToStore.push(valueToStore); | ||
if (property.searchable) { | ||
if (property.searchable && entity[property.name]) { | ||
yield this.client.sadd(this.getSearchableKeyName(name, property.name), this.getSearchableValuePrefix(entity[primary]) + entity[property.name].toLowerCase()); | ||
@@ -378,3 +378,3 @@ } | ||
for (const property of Object.keys(properties).map(key => properties[key])) { | ||
if (property.searchable) { | ||
if (property.searchable && entity[property.name]) { | ||
yield this.client.srem(this.getSearchableKeyName(name, property.name), this.getSearchableValuePrefix(entity[primary]) + entity[property.name].toLowerCase()); | ||
@@ -381,0 +381,0 @@ } |
{ | ||
"name": "redisk", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "TypeScript ORM for Redis.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -56,3 +56,3 @@ import { Type } from './metadata/type'; | ||
if (property.searchable) { | ||
if (property.searchable && persistedEntity[property.name]) { | ||
await this.client.srem( | ||
@@ -112,3 +112,3 @@ this.getSearchableKeyName(name, property.name), | ||
if (property.searchable) { | ||
if (property.searchable && entity[property.name]) { | ||
await this.client.sadd( | ||
@@ -484,3 +484,3 @@ this.getSearchableKeyName(name, property.name), | ||
for (const property of Object.keys(properties).map(key => properties[key])) { | ||
if (property.searchable) { | ||
if (property.searchable && entity[property.name]) { | ||
await this.client.srem( | ||
@@ -487,0 +487,0 @@ this.getSearchableKeyName(name, property.name), |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
206236
4