Skip to content

Commit

Permalink
remove stray debugger rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qedi-r committed Nov 6, 2024
1 parent a91a6c7 commit d0508e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ describe('Transaction rules', () => {

test('and sub expression builds $and condition', async () => {
const conds = [{ field: 'category', op: 'is', value: null }];
debugger;
const { filters } = conditionsToAQL(conds);
expect(filters).toStrictEqual([
{
Expand Down
2 changes: 0 additions & 2 deletions packages/loot-core/src/server/accounts/transaction-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,10 @@ export function conditionsToAQL(conditions, { recurDateBounds = 100 } = {}) {
case 'false':
return apply(field, '$eq', false);
case 'and':
debugger;
return {
$and: getValue(value).map(subExpr => mapConditionToActualQL(subExpr)),
};
default:
debugger;
throw new Error('Unhandled operator: ' + op);
}
};
Expand Down

0 comments on commit d0508e6

Please sign in to comment.