diff --git a/.github/workflows/ci-backend.yaml b/.github/workflows/ci-backend.yaml index 87c34f9..5d49335 100644 --- a/.github/workflows/ci-backend.yaml +++ b/.github/workflows/ci-backend.yaml @@ -3,7 +3,7 @@ name: CI on: push: paths: - - "./**" + - "backend/**" workflow_dispatch: diff --git a/backend/src/usecase/user.rs b/backend/src/usecase/user.rs index f34a5f4..28201c1 100644 --- a/backend/src/usecase/user.rs +++ b/backend/src/usecase/user.rs @@ -4,6 +4,7 @@ use crate::generate::entities::user; use crate::{context::Context, models::user::User}; pub async fn get_user_by_id(ctx: &Context, id: &str) -> Result, ()> { + // hoge let db = &ctx.db; let Ok(user) = user::Entity::find_by_id(id).one(db).await else {