hey can someone tell me what formats `--keep-last`...
# ory-selfhosting
d
hey can someone tell me what formats
--keep-last
supports when running
kratos cleanup sql
? The docs don't state. Looking at the source code it looks to be using a Cobra Duration, but when I use
90d
it tells me it's not valid
m
hey @dazzling-napkin-4938
--keep-last
is a Go duration, so the only valid units are ns, us (or ยตs), ms, s, m, h
d
awesome, thanks, 2160h it is
๐Ÿ‘ 1
hey I just tried to open a PR to add this info to the documentation, but PRs on the docs repo are restricted? github.com/ory/docs/compare/master...MichaelMarner:docs:patch-1
m
Yea, we are currently figuring out how to best sync it with the internal monorepo plus we got a HUGE influx of spam PRs on that repo in the recent months which forced us to temporarily disable it thanks for your PR, if you don't mind I would take it and fix internally. maybe there is a way to credit you in the commit message or something?
d
all good, happy for you to fix internally and take the credit ๐Ÿ˜›
m
PR is underway, was able to add you as co-author ๐Ÿ™‚