Avoid checking regularUserCheck in acceptClientInvite

This commit is contained in:
Arthur Belleville 2026-04-15 21:51:20 +02:00
parent 29debcbf25
commit ebf6d8a255
No known key found for this signature in database

View file

@ -89,8 +89,8 @@ const createClientInvite = (middlewareManager: ReturnType<typeof MiddlewareManag
});
/** POST /accept/:token — Accept a client invite */
const acceptClientInvite = (middlewareManager: ReturnType<typeof MiddlewareManager.getInstance>) =>
factory.createHandlers(middlewareManager.regularUserCheck, async (c) => {
const acceptClientInvite = (_middlewareManager: ReturnType<typeof MiddlewareManager.getInstance>) =>
factory.createHandlers(async (c) => {
const user = c.get("user");
const supabase = c.get("supabase");
const token = c.req.param("token");