diff --git a/internal/collections/infra/mysql_repo.go b/internal/collections/infra/mysql_repo.go index 204920c4..ac09d6f0 100644 --- a/internal/collections/infra/mysql_repo.go +++ b/internal/collections/infra/mysql_repo.go @@ -128,7 +128,7 @@ func (r mysqlRepo) DeleteSubjectCollection( ) error { _, err := r.q.SubjectCollection.WithContext(ctx). Where(r.q.SubjectCollection.UserID.Eq(userID), r.q.SubjectCollection.SubjectID.Eq(subjectID)). - Delete() + UpdateSimple(r.q.SubjectCollection.Type.Value(0)) return err }