Finish adding limits checks to all put and post

This commit is contained in:
Owen
2026-02-10 10:52:40 -08:00
committed by Owen Schwartz
parent 0ae4d3b5c9
commit 50c4aa720c
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