style: formatting

This commit is contained in:
Simon Vieille 2025-04-25 14:45:54 +02:00
commit 49a39f436c
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 12 additions and 3 deletions

View file

@ -38,7 +38,10 @@ func ImportBanquePopulaireTransactions(content string, bankAccountID int) ([]Tra
var count int64
db.Model(Transaction{}).Where(Transaction{Reference: ref}).Count(&count)
db.Model(Transaction{}).Where(Transaction{
Reference: ref,
BankAccountID: bankAccountID,
}).Count(&count)
if count > 0 {
continue

View file

@ -42,7 +42,10 @@ func ImportCaisseEpargneTransactions(content string, bankAccountID int) ([]Trans
var count int64
db.Model(Transaction{}).Where(Transaction{Reference: ref}).Count(&count)
db.Model(Transaction{}).Where(Transaction{
Reference: ref,
BankAccountID: bankAccountID,
}).Count(&count)
if count > 0 {
continue

View file

@ -41,7 +41,10 @@ func ImportRevolutTransactions(content string, bankAccountID int) ([]Transaction
var count int64
db.Model(Transaction{}).Where(Transaction{Reference: ref}).Count(&count)
db.Model(Transaction{}).Where(Transaction{
Reference: ref,
BankAccountID: bankAccountID,
}).Count(&count)
if count > 0 {
continue