Skip to content

Commit af965eb

Browse files
committed
fix: call correct method to revoke calendar access on credential destroy
1 parent 8c9ef7f commit af965eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/oauth_credential.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def revoke_calendar_access
7070
return if google_calendar&.google_calendar_id.blank?
7171

7272
service = GoogleCalendarService.new(user)
73-
service.unshare_calendar_with_email(google_calendar.google_calendar_id, email)
73+
service.remove_calendar_from_user_list_for_email(google_calendar.google_calendar_id, email)
7474
rescue => e
7575
Rails.logger.error("Failed to revoke calendar access for #{email}: #{e.message}")
7676
end

0 commit comments

Comments
 (0)