mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
linter
This commit is contained in:
parent
8acffdf9b2
commit
99e95e54c0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue