mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
removed UserNotInTeam error
This commit is contained in:
parent
11955c57bf
commit
02568ba36d
@ -782,20 +782,6 @@ const PermissionScopeMismatch = createKnownErrorConstructor(
|
||||
(json: any) => [json.details.permissionId, json.details.permissionScope, json.details.testScope] as const,
|
||||
);
|
||||
|
||||
const UserNotInTeam = createKnownErrorConstructor(
|
||||
KnownError,
|
||||
"USER_NOT_IN_TEAM",
|
||||
(userId: string, teamId: string) => [
|
||||
400,
|
||||
`User ${userId} is not in team ${teamId}.`,
|
||||
{
|
||||
userId,
|
||||
teamId,
|
||||
},
|
||||
] as const,
|
||||
(json: any) => [json.details.userId, json.details.teamId] as const,
|
||||
);
|
||||
|
||||
const TeamNotFound = createKnownErrorConstructor(
|
||||
KnownError,
|
||||
"TEAM_NOT_FOUND",
|
||||
@ -958,7 +944,6 @@ export const KnownErrors = {
|
||||
EmailAlreadyVerified,
|
||||
PermissionNotFound,
|
||||
PermissionScopeMismatch,
|
||||
UserNotInTeam,
|
||||
TeamNotFound,
|
||||
EmailTemplateAlreadyExists,
|
||||
OAuthConnectionNotConnectedToUser,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user