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