pub async fn sync_mark_failed( db: State<'_, DatabaseWrapper>, id: i64, error: String, ) -> Result<(), String>
Mark a sync operation as failed with error message