chore: Drop redundant teamId UUID check

This commit is contained in:
Tom Moor committed 2026-11-25 09:23:13 -05:00
1 parent 3816ca2f52
commit 4cf4e7b8ae
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ function ownedByWhere(
userIds: string[],
teamId: string | undefined
): Record<string, unknown> {
if (!teamId || !isUUID(teamId)) {
if (!teamId) {
throw new Error("`ownerIds` filter requires a teamId");
}
if (!userIds.every((id) => isUUID(id))) {