Do recycle the future

This commit is contained in:
daru
2022-07-18 01:12:04 +02:00
parent 1a075e79ff
commit ecba4d68e6

View File

@@ -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))