Skip to content

Commit

Permalink
fix(toggle): use correct duration string
Browse files Browse the repository at this point in the history
resolves #5814
  • Loading branch information
JanDeDobbeleer committed Nov 5, 2024
1 parent 2a3b26f commit 2c65dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cache/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type Duration string
const (
INFINITE = Duration("infinite")
ONEWEEK = Duration("168h")
ONEDAY = Duration("24h")
)

func (d Duration) Seconds() int {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/toggle.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var toggleCmd = &cobra.Command{
newToggles = append(newToggles, segment)
}

env.Session().Set(cache.TOGGLECACHE, strings.Join(newToggles, ","), "1day")
env.Session().Set(cache.TOGGLECACHE, strings.Join(newToggles, ","), cache.ONEDAY)
},
}

Expand Down

0 comments on commit 2c65dbf

Please sign in to comment.