File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/luminork-server/src/service/v1 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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) ]
7676pub 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}
You can’t perform that action at this time.
0 commit comments