Skip to content

Commit

Permalink
Fix: Document doesn't have a registered cozy client
Browse files Browse the repository at this point in the history
  • Loading branch information
orandin committed Aug 24, 2019
1 parent b242220 commit 6613cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const helpers = require('./helpers')

const doctypes = require('cozy-doctypes/dist')
const {
Document,
BankAccount,
BankTransaction,
BalanceHistory,
Expand All @@ -32,8 +33,7 @@ let urlAskDownload =
'/fr/prive/mes-comptes/compte-courant/consulter-situation/telecharger-historique/telechargement-especes.jsp'
let urlDownload = baseUrl + '/documents/HistoriqueOperations_'

BankAccount.registerClient(cozyClient)
BalanceHistory.registerClient(cozyClient)
Document.registerClient(cozyClient)

const reconciliator = new BankingReconciliator({ BankAccount, BankTransaction })
const request = requestFactory({
Expand Down

0 comments on commit 6613cf5

Please sign in to comment.