fix(project): invitation accept always 404 due to wrong column filter

Column::Project was used twice instead of Column::User in the query,
causing the filter to be project_id = X AND project_id = user_uid
which never matches.
This commit is contained in:
ZhenYi 2026-04-21 23:05:18 +08:00
parent 4d3afc5e71
commit 1e6ba34827

View File

@ -372,7 +372,7 @@ impl AppService {
.await?;
let invitation = project_member_invitations::Entity::find()
.filter(project_member_invitations::Column::Project.eq(project.id))
.filter(project_member_invitations::Column::Project.eq(user_uid))
.filter(project_member_invitations::Column::User.eq(user_uid))
.one(&self.db)
.await?
.ok_or(AppError::NotFound(