Skip to content

Commit

Permalink
set type to 0 on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 10, 2024
1 parent b1a0c71 commit 809b852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collections/infra/mysql_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 809b852

Please sign in to comment.