fix: set userId in withOrgAuth middleware

This commit is contained in:
Supriyo
2025-09-03 10:43:52 +05:30
parent fcbf9e91dc
commit 6aeab9dcd3

View File

@@ -85,6 +85,7 @@ export const withOrgAuth = async (req: any, res: any, next: NextFunction) => {
const { org, features } = data;
req.user = session?.user;
req.userId = userId;
req.orgId = orgId;
req.org = org;
req.features = features;