mirror of
https://github.com/outline/outline.git
synced 2026-11-25 23:24:06 +03:00
chore: Drop redundant teamId UUID check
This commit is contained in:
1 file changed
+1
-1
@@ -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))) {
|
||||
|
||||
Reference in new issue
Block a user