diff --git a/lib/storage/providers/SQLiteStorage.js b/lib/storage/providers/SQLiteStorage.js index 1e1ec0c2..7a20b66b 100644 --- a/lib/storage/providers/SQLiteStorage.js +++ b/lib/storage/providers/SQLiteStorage.js @@ -89,7 +89,7 @@ const provider = { SET valueJSON = JSON_PATCH(valueJSON, JSON(:value)); `; - const queryArguments = _.map(pairs, pair => [pair[0], _.isUndefined(pair[1]) ? null : pair[1]]); + const queryArguments = _.filter(pairs, pair => !_.isUndefined(pair[1])); return db.executeBatchAsync([[query, queryArguments]]); },