Skip to content

Commit

Permalink
Don't throw an error, just return user:null (#9058)
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum authored Dec 2, 2024
1 parent 228cfe1 commit f36c604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ async function handler(
}

if (!agentConfiguration.versionAuthorId) {
return apiError(req, res, {
status_code: 404,
api_error: {
type: "agent_last_author_not_found",
message: "The last author of this assistant was not found.",
},
return res.status(200).json({
user: null,
});
}

Expand Down
1 change: 0 additions & 1 deletion types/src/front/lib/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export type APIErrorType =
| "connector_provider_not_supported"
| "connector_credentials_error"
| "agent_configuration_not_found"
| "agent_last_author_not_found"
| "agent_message_error"
| "message_not_found"
| "plan_message_limit_exceeded"
Expand Down

0 comments on commit f36c604

Please sign in to comment.