Remove injection of fetcher and repository to watcher

This commit is contained in:
Edvard
2019-01-07 15:19:31 +01:00
parent e54699c039
commit 833dde62cf
33 changed files with 72 additions and 88 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func (repository VatTollRepository) Create(headerID int64, models []interface{})
}
}
err = shared.Repository{}.MarkHeaderCheckedInTransaction(headerID, tx, constants.VatTollChecked)
err = shared.MarkHeaderCheckedInTransaction(headerID, tx, constants.VatTollChecked)
if err != nil {
tx.Rollback()
return err
@@ -43,7 +43,7 @@ func (repository VatTollRepository) Create(headerID int64, models []interface{})
}
func (repository VatTollRepository) MarkHeaderChecked(headerID int64) error {
return shared.Repository{}.MarkHeaderChecked(headerID, repository.db, constants.VatTollChecked)
return shared.MarkHeaderChecked(headerID, repository.db, constants.VatTollChecked)
}
func (repository *VatTollRepository) SetDB(db *postgres.DB) {