Keep appointmets longer

This commit is contained in:
daru
2022-07-16 21:37:29 +02:00
parent 5d1efd6bcf
commit aec582ff8e
3 changed files with 9 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ func Arbeit() {
} else {
cleared := 0
for _, a := range appoints {
if a.Time.Before(time.Now()) {
if a.Time.Before(time.Now().Add(time.Hour * 22)) {
// appointment expired
keyBytes := Int64AndDateToBytes(a.Anime, a.Time)
err = DbDelete(bucketAppoint, string(keyBytes))