Skip to content

Commit 50e4446

Browse files
committed
type fix
1 parent 24fe5fe commit 50e4446

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

server/supabase/functions/courses/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.use("*", cors({
3737
exposeHeaders: ["Authorization", "Content-Type"],
3838
}));
3939

40-
app.use("*", authMiddleware);
40+
app.use("*", authMiddleware as any);
4141

4242
// Get course by course ID
4343
app.get("/:course_id", async (c: Context<{ Variables: UserVariables }>) => {

server/supabase/functions/posts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.use(
2424
}),
2525
);
2626

27-
app.use("*", authMiddleware);
27+
app.use("*", authMiddleware as any);
2828

2929
/**
3030
* Retrieves a post using course_id and post_id (both UUID)

server/supabase/functions/users/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ app.use("*", cors({
2525
exposeHeaders: ["Authorization", "Content-Type"],
2626
}));
2727

28-
app.use("*", authMiddleware);
28+
app.use("*", authMiddleware as any);
2929

3030
// Get all users
3131
app.get("/", async (c) => {

0 commit comments

Comments
 (0)