rentease/internal/cron/job_report.go
2024-06-30 12:49:26 +02:00

16 lines
405 B
Go

package cron
import (
"errors"
"log"
"time"
)
func JobMonthlyBookingReport() error {
now := time.Now()
log.Println("Start Monthly Booking Report job at:", now)
//err := booking.NewService().BuildReport("monthly", int(now.Month()), now.Year())
err := errors.New("test")
log.Printf("Executed Monthly Booking Report job at %v with errors: %s:", time.Now().Format(time.DateTime), err)
return err
}