mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-11 05:06:52 +00:00
16 lines
405 B
Go
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
|
|
}
|