fix postgresql issues

This commit is contained in:
2023-05-08 01:16:08 +02:00
parent 9e2b9251db
commit 6ecc05ba0b
6 changed files with 52 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import (
"git.coopgo.io/coopgo-platform/carpool-incentives/storage"
"github.com/google/uuid"
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
)
@@ -62,6 +63,7 @@ func (h *IncentivesHandler) GetAvailableIncentives(userid string) ([]storage.Inc
incentiveSubscriptions, err := h.Storage.GetUserSubscriptions(userid)
if err != nil {
log.Error().Err(err).Msg("error retrieving subscriptions")
return nil, err
}