style: formatting
This commit is contained in:
parent
96c3c822cd
commit
49a39f436c
3 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue