Skip to content

Commit 63600b5

Browse files
committed
fix: fix expiration time
1 parent 03dbaa7 commit 63600b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller_ghs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func shouldDeleteGHS(ghs *v1.GHS) bool {
126126
}
127127

128128
// Check if the expiration time is set and has passed
129-
if !ghs.Status.ExpiresAt.Time.IsZero() && ghs.Status.ExpiresAt.Time.Before(time.Now().Add(-15*time.Minute)) {
129+
if !ghs.Status.ExpiresAt.Time.IsZero() && ghs.Status.ExpiresAt.Time.Before(time.Now().Add(+15*time.Minute)) {
130130
return true
131131
}
132132

0 commit comments

Comments
 (0)