Skip to content

Commit 5aacde8

Browse files
committed
fix: ttl
Signed-off-by: Innei <i@innei.in>
1 parent 9173632 commit 5aacde8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiro/functions/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function POST(ctx: Context) {
5252
icon,
5353
desc,
5454
ttl,
55-
untilAt: Date.now() + ttl,
55+
untilAt: Date.now() + ttl * 1000,
5656
} as Status
5757
ctx.storage.cache.set(cacheKey, JSON.stringify(status), ttl)
5858
ctx.status(204)

0 commit comments

Comments
 (0)