Skip to content

Commit

Permalink
fix: ttl
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 24, 2024
1 parent 9173632 commit 5aacde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shiro/functions/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function POST(ctx: Context) {
icon,
desc,
ttl,
untilAt: Date.now() + ttl,
untilAt: Date.now() + ttl * 1000,
} as Status
ctx.storage.cache.set(cacheKey, JSON.stringify(status), ttl)
ctx.status(204)
Expand Down

0 comments on commit 5aacde8

Please sign in to comment.