Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-001 committed Feb 26, 2025
1 parent d65b0e5 commit 9201ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ function getRandomAvatarUrl() {
}
app.get("/api/v1/get_all_connections", async (c) => {
try {
const user_id = c.req.header().user_id;
if (!user_id) return c.json({ error: "user_id is required" });
const user_id = c.req.header()["user-id"];
if (!user_id) return c.json({ error: "user-id is required" });
const userData: any = await db
.select()
.from(userServerAccess)
Expand Down

0 comments on commit 9201ab3

Please sign in to comment.