Commit 3634883a authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix typo in Query class

parent f9b43780
......@@ -40,7 +40,7 @@ export default class Query {
if (newQuery[key]) {
if (key === '$or') {
if (!newQuery.$and) newQuery.$and = [];
newQuery.push({ $or: Query.copy(value) });
newQuery.$and.push({ $or: Query.copy(value) });
} else if (key === '$and') {
newQuery.$and = newQuery.$and.concat(Query.copy(value));
} else if (typeof newQuery[key] === 'object') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment