This commit is contained in:
Ruidy 2024-07-18 13:09:33 +02:00
parent 8acffdf9b2
commit 99e95e54c0
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -15,7 +15,7 @@ import (
)
func JobMonthlyBookingReport() error {
godotenv.Load()
_ = godotenv.Load()
db, err := gorm.Open(postgres.Open(os.Getenv("DATABASE_URL")), &gorm.Config{})
if err != nil {
return fmt.Errorf("error connecting to the database %s", err)
@ -35,7 +35,7 @@ func JobMonthlyBookingReport() error {
return fmt.Errorf("error starting pdf service %s", err)
}
ps.BuildReport(report, "", int(now.Month()), now.Year())
_ = ps.BuildReport(report, "", int(now.Month()), now.Year())
log.Printf("Executed Monthly Booking Report job at %v with errors: %s:", time.Now().Format(time.DateTime), err)
return err
}