Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 9, 2024
1 parent 0623d09 commit 83a31e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion ee/tabby-db/migrations/0022_github-provider.down.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DROP TABLE github_repository_provider;
DROP TABLE github_provided_repositories;
4 changes: 3 additions & 1 deletion ee/tabby-webserver/src/repositories/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ use anyhow::Result;
use axum::{
extract::{Path, State},
http::StatusCode,
middleware::from_fn_with_state,
response::Response,
routing, Json, Router,
};
pub use resolve::RepositoryCache;
use tracing::{instrument, warn};

use crate::{
handler::require_login_middleware,
repositories::resolve::{RepositoryMeta, ResolveParams},
schema::{
auth::AuthenticationService, github_repository_provider::GithubRepositoryProviderService,
Expand Down Expand Up @@ -47,7 +49,7 @@ pub fn routes(
.with_state(rs.clone())
.nest("/oauth", oauth::routes(oauth_state))

Check warning on line 50 in ee/tabby-webserver/src/repositories/mod.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/repositories/mod.rs#L50

Added line #L50 was not covered by tests
.fallback(not_found)
// .layer(from_fn_with_state(auth, require_login_middleware))
.layer(from_fn_with_state(auth, require_login_middleware))
}

async fn not_found() -> StatusCode {
Expand Down

0 comments on commit 83a31e4

Please sign in to comment.