Skip to content

Commit 6ce77f7

Browse files
committed
fix(luminork): Update set_ai_agent_executed to return a 204 status code
1 parent 7829e4a commit 6ce77f7

File tree

1 file changed

+3
-3
lines changed
  • lib/luminork-server/src/service/v1

1 file changed

+3
-3
lines changed

lib/luminork-server/src/service/v1/user.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ impl IntoResponse for UserError {
6868
),
6969
tag = "user",
7070
responses(
71-
(status = 200, description = "Flag set successfully"),
71+
(status = 204, description = "Flag set successfully"),
7272
(status = 401, description = "Unauthorized - Invalid or missing token"),
7373
(status = 500, description = "Internal server error", body = crate::service::v1::common::ApiError)
7474
)
7575
)]
7676
pub async fn set_ai_agent_executed(
7777
WorkspaceDalContext(ref ctx): WorkspaceDalContext,
78-
) -> UserResult<()> {
78+
) -> UserResult<StatusCode> {
7979
let HistoryActor::User(user_pk) = ctx.history_actor() else {
8080
return Err(UserError::MissingUser);
8181
};
@@ -96,5 +96,5 @@ pub async fn set_ai_agent_executed(
9696

9797
ctx.commit().await?;
9898

99-
Ok(())
99+
Ok(StatusCode::NO_CONTENT)
100100
}

0 commit comments

Comments
 (0)