You've already forked AstralRinth
forked from didirus/AstralRinth
Analytics + more bug fixes (#144)
* Analytics + more bug fixes * debug deadlock * Fix mostly everything * merge fixes * fix rest * final fixeS
This commit is contained in:
@@ -34,20 +34,11 @@ pub async fn logs_get_logs_by_datetime(
|
||||
|
||||
/// Get the stdout for a profile by profile id and datetime string
|
||||
#[tauri::command]
|
||||
pub async fn logs_get_stdout_by_datetime(
|
||||
pub async fn logs_get_output_by_datetime(
|
||||
profile_uuid: Uuid,
|
||||
datetime_string: String,
|
||||
) -> Result<String> {
|
||||
Ok(logs::get_stdout_by_datetime(profile_uuid, &datetime_string).await?)
|
||||
}
|
||||
|
||||
/// Get the stderr for a profile by profile id and datetime string
|
||||
#[tauri::command]
|
||||
pub async fn logs_get_stderr_by_datetime(
|
||||
profile_uuid: Uuid,
|
||||
datetime_string: String,
|
||||
) -> Result<String> {
|
||||
Ok(logs::get_stderr_by_datetime(profile_uuid, &datetime_string).await?)
|
||||
Ok(logs::get_output_by_datetime(profile_uuid, &datetime_string).await?)
|
||||
}
|
||||
|
||||
/// Delete all logs for a profile by profile id
|
||||
|
||||
@@ -52,14 +52,8 @@ pub async fn process_get_all_running_profiles() -> Result<Vec<Profile>> {
|
||||
|
||||
// Gets process stderr by process UUID
|
||||
#[tauri::command]
|
||||
pub async fn process_get_stderr_by_uuid(uuid: Uuid) -> Result<String> {
|
||||
Ok(process::get_stderr_by_uuid(&uuid).await?)
|
||||
}
|
||||
|
||||
// Gets process stdout by process UUID
|
||||
#[tauri::command]
|
||||
pub async fn process_get_stdout_by_uuid(uuid: Uuid) -> Result<String> {
|
||||
Ok(process::get_stdout_by_uuid(&uuid).await?)
|
||||
pub async fn process_get_output_by_uuid(uuid: Uuid) -> Result<String> {
|
||||
Ok(process::get_output_by_uuid(&uuid).await?)
|
||||
}
|
||||
|
||||
// Kill a process by process UUID
|
||||
|
||||
@@ -233,6 +233,7 @@ pub async fn profile_edit(
|
||||
async { Ok(()) }
|
||||
})
|
||||
.await?;
|
||||
State::sync().await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user