chore: change the execution flow for deleting the invalid instagram story (#6313)

* fix: change the execution flow for deleting the invalid instagram story

* fix: bundle audit update fix
This commit is contained in:
Tejaswini Chile
2023-01-23 16:23:35 +05:30
committed by GitHub
parent 4deff9ce77
commit 551dd81d21
2 changed files with 56 additions and 56 deletions

View File

@@ -77,7 +77,7 @@ class Channel::FacebookPage < ApplicationRecord
end
def delete_instagram_story(message)
message.update(content: I18n.t('conversations.messages.instagram_deleted_story_content'), content_attributes: {})
message.attachments.destroy_all
message.update(content: I18n.t('conversations.messages.instagram_deleted_story_content'), content_attributes: {})
end
end