Skip to content

Commit 7a35f68

Browse files
KnerioCopilot
andauthored
Use user.destroy instead of user.delete
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Dario Pranjic <96529060+Knerio@users.noreply.github.com>
1 parent 20cebaa commit 7a35f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/users/delete_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def execute
1717
end
1818

1919
transactional do |t|
20-
user.delete
20+
user.destroy
2121

2222
if user.persisted?
2323
t.rollback_and_return! ServiceResponse.error(

0 commit comments

Comments
 (0)