Optimize Checksums saving

This commit is contained in:
Deluan
2020-01-13 08:35:12 -05:00
committed by Deluan Quintão
parent b07642a8d1
commit 87ca885b5e
3 changed files with 17 additions and 15 deletions
@@ -10,7 +10,7 @@ var _ = Describe("ChecksumRepository", func() {
var repo scanner.CheckSumRepository
BeforeEach(func() {
Db().Delete(&CheckSums{ID: checkSumId})
Db().Delete(&Checksum{ID: checkSumId})
repo = NewCheckSumRepository()
err := repo.SetData(map[string]string{
"a": "AAA", "b": "BBB",