Skip to content

Commit 48fcd00

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

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl IntoResponse for UserError {
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)