From 4f10ea3080f1e43fdd6f6cfed548476af1ca9257 Mon Sep 17 00:00:00 2001 From: eraser5th <83107074+eraser5th@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:54:11 +0900 Subject: [PATCH] =?UTF-8?q?ci=E3=82=92=E7=9B=B4=E3=81=97=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A8=E3=80=81=E6=A4=9C=E8=A8=BC=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E9=81=A9=E5=BD=93=E3=81=AA=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-backend.yaml | 2 +- backend/src/usecase/user.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 {