Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Mar 5, 2018
1 parent 0370d7c commit c93727e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func book() {
model.DB().Where("user_id = ? and due_time > ?", user.ID, now).Find(&book)

day := (book.DueTime.Unix() - now.Unix()) / 3600 / 24
if day == 6 || day == 1 {
if day == 7 || day == 1 {
sign := &tasks.Signature{
Name: "notify_book",
Args: []tasks.Arg{
Expand Down

0 comments on commit c93727e

Please sign in to comment.