diff --git a/go.mod b/go.mod index 3030547..0e61275 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/dadosjusbr/proto v0.0.0-20221212025627-91c60aa3cd12 - github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e + github.com/dadosjusbr/storage v0.0.0-20240215133808-01101e0b3766 github.com/kelseyhightower/envconfig v1.4.0 google.golang.org/protobuf v1.28.1 ) diff --git a/go.sum b/go.sum index 6f62891..89b6347 100644 --- a/go.sum +++ b/go.sum @@ -35,6 +35,8 @@ github.com/dadosjusbr/storage v0.0.0-20240122222419-3472161adddb h1:yCHr4P7e8kBC github.com/dadosjusbr/storage v0.0.0-20240122222419-3472161adddb/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e h1:3cH5bjKv7JDuGSAU+7WCdtM/ov0pv/6XzTWhTMbyUgc= github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= +github.com/dadosjusbr/storage v0.0.0-20240215133808-01101e0b3766 h1:u5Qem0JR196gPjsreNPaa1HTZI8/FExL0+XR+pMx+h4= +github.com/dadosjusbr/storage v0.0.0-20240215133808-01101e0b3766/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/main.go b/main.go index fc6c24b..782ef48 100644 --- a/main.go +++ b/main.go @@ -406,6 +406,8 @@ func aggregatingItems(itemValues map[string]float64) models.ItemSummary { itemSummary.BonusLicense += value case "indenizacao-de-ferias": itemSummary.VacationCompensation += value + case "gratificacao-natalina": + itemSummary.ChristmasBonus += value } others = 0 break