Finish adding limits checks to all put and post

This commit is contained in:
Owen
2026-02-10 10:52:40 -08:00
parent ea0e770b57
commit 7d6ee72025
5 changed files with 91 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ export async function verifyLimits(
return next();
}
const orgId = req.userOrgId || req.params.orgId;
const orgId = req.userOrgId || req.apiKeyOrg?.orgId || req.params.orgId;
if (!orgId) {
return next(); // its fine if we silently fail here because this is not critical to operation or security and its better user experience if we dont fail