mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
throw no project error in smart request
This commit is contained in:
parent
dcce558e73
commit
a857251ab9
@ -252,7 +252,7 @@ const parseAuth = withTraceSpan('smart request parseAuth', async (req: NextReque
|
||||
|
||||
const project = queriesResults.project;
|
||||
if (!project) {
|
||||
throw new StackAssertionError("Project not found; this should never happen because passing the checks until here should guarantee that the project exists and that access to it is granted", { projectId });
|
||||
throw new KnownErrors.ProjectNotFound(projectId);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user