Skip to content

Commit 341b092

Browse files
committed
fix: status gone wrong
1 parent f7fa8e3 commit 341b092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ app.all("/api/*", async (c) => {
6767
if (!redisData) return c.json({});
6868
const { status, data } = JSON.parse(redisData);
6969
c.status = status;
70-
return c.json(data);
70+
return c.json(data, status);
7171
});
7272

7373
const PORT = process.env.PORT || 8000;

0 commit comments

Comments
 (0)