mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 12:29:53 +01:00
Do recycle the future
This commit is contained in:
@@ -28,7 +28,7 @@ func Arbeit() {
|
||||
} else {
|
||||
cleared := 0
|
||||
for _, a := range appoints {
|
||||
if a.Time.Before(time.Now().Add(time.Hour * 22)) {
|
||||
if a.Time.Add(time.Hour * 22).Before(time.Now()) {
|
||||
// appointment expired
|
||||
keyBytes := Int64AndDateToBytes(a.Anime, a.Time)
|
||||
err = DbDelete(bucketAppoint, string(keyBytes))
|
||||
|
||||
Reference in New Issue
Block a user