diff --git a/domain/model/cp_m/cp_relation.go b/domain/model/cp_m/cp_relation.go index 6f24c9ceab405cc6c43be053c08a03f590da481d..009b7cb79304443fe52dc6fc53230e7b751989d1 100644 --- a/domain/model/cp_m/cp_relation.go +++ b/domain/model/cp_m/cp_relation.go @@ -151,7 +151,7 @@ func GetCpInvite(model *domain.Model, userId, userIdInvite uint64, status cp_e.C func GetCpInviteById(model *domain.Model, id, userId uint64) (*CpInvite, error) { res := new(CpInvite) - err := model.DB().Model(CpInvite{}).Where(CpInvite{Id: id}).Where("user_id = ? or invite_userId = ?", userId, userId).First(&res).Error + err := model.DB().Model(CpInvite{}).Where(CpInvite{Id: id}).Where("user_id = ? or invite_user_id = ?", userId, userId).First(&res).Error if err != nil { if err == gorm.ErrRecordNotFound { return nil, nil