Fix matcher query for removed columns
This commit is contained in:
@@ -25,12 +25,11 @@ function findMatches(newTransaction, userId) {
|
||||
.prepare(
|
||||
`
|
||||
SELECT id, transaction_code, transaction_date, amount, counterparty,
|
||||
description, source_type, direction, category
|
||||
description, source_type, direction
|
||||
FROM transactions
|
||||
WHERE id != ?
|
||||
AND source_id != ?
|
||||
AND user_id = ?
|
||||
AND reviewed = 0
|
||||
AND ABS(ABS(amount) - ?) <= 1.0
|
||||
AND transaction_date BETWEEN DATE(?, '-2 days') AND DATE(?, '+2 days')
|
||||
ORDER BY ABS(julianday(transaction_date) - julianday(?)) ASC
|
||||
|
||||
Reference in New Issue
Block a user