We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7829e4a commit 48fcd00Copy full SHA for 48fcd00
lib/luminork-server/src/service/v1/user.rs
@@ -75,7 +75,7 @@ impl IntoResponse for UserError {
75
)]
76
pub async fn set_ai_agent_executed(
77
WorkspaceDalContext(ref ctx): WorkspaceDalContext,
78
-) -> UserResult<()> {
+) -> UserResult<StatusCode> {
79
let HistoryActor::User(user_pk) = ctx.history_actor() else {
80
return Err(UserError::MissingUser);
81
};
@@ -96,5 +96,5 @@ pub async fn set_ai_agent_executed(
96
97
ctx.commit().await?;
98
99
- Ok(())
+ Ok(StatusCode::NO_CONTENT)
100
}
0 commit comments