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

@@ -9,63 +9,63 @@ GIT
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (6.1.6.1) actioncable (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailbox (6.1.6.1) actionmailbox (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
activejob (= 6.1.6.1) activejob (= 6.1.7.1)
activerecord (= 6.1.6.1) activerecord (= 6.1.7.1)
activestorage (= 6.1.6.1) activestorage (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
mail (>= 2.7.1) mail (>= 2.7.1)
actionmailer (6.1.6.1) actionmailer (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
actionview (= 6.1.6.1) actionview (= 6.1.7.1)
activejob (= 6.1.6.1) activejob (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
actionpack (6.1.6.1) actionpack (6.1.7.1)
actionview (= 6.1.6.1) actionview (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
rack (~> 2.0, >= 2.0.9) rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3) rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.6.1) actiontext (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
activerecord (= 6.1.6.1) activerecord (= 6.1.7.1)
activestorage (= 6.1.6.1) activestorage (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (6.1.6.1) actionview (6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
builder (~> 3.1) builder (~> 3.1)
erubi (~> 1.4) erubi (~> 1.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0)
active_record_query_trace (1.8) active_record_query_trace (1.8)
activejob (6.1.6.1) activejob (6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (6.1.6.1) activemodel (6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
activerecord (6.1.6.1) activerecord (6.1.7.1)
activemodel (= 6.1.6.1) activemodel (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
activerecord-import (1.4.0) activerecord-import (1.4.0)
activerecord (>= 4.2) activerecord (>= 4.2)
activestorage (6.1.6.1) activestorage (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
activejob (= 6.1.6.1) activejob (= 6.1.7.1)
activerecord (= 6.1.6.1) activerecord (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
marcel (~> 1.0) marcel (~> 1.0)
mini_mime (>= 1.1.0) mini_mime (>= 1.1.0)
activesupport (6.1.6.1) activesupport (6.1.7.1)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2) i18n (>= 1.6, < 2)
minitest (>= 5.1) minitest (>= 5.1)
@@ -247,7 +247,7 @@ GEM
grpc (~> 1.36) grpc (~> 1.36)
geocoder (1.8.0) geocoder (1.8.0)
gli (2.21.0) gli (2.21.0)
globalid (1.0.0) globalid (1.0.1)
activesupport (>= 5.0) activesupport (>= 5.0)
gmail_xoauth (0.4.2) gmail_xoauth (0.4.2)
oauth (>= 0.3.6) oauth (>= 0.3.6)
@@ -476,7 +476,7 @@ GEM
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
raabro (1.4.0) raabro (1.4.0)
racc (1.6.1) racc (1.6.1)
rack (2.2.4) rack (2.2.6.2)
rack-attack (6.6.1) rack-attack (6.6.1)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rack-cors (1.1.1) rack-cors (1.1.1)
@@ -488,29 +488,29 @@ GEM
rack-test (2.0.2) rack-test (2.0.2)
rack (>= 1.3) rack (>= 1.3)
rack-timeout (0.6.3) rack-timeout (0.6.3)
rails (6.1.6.1) rails (6.1.7.1)
actioncable (= 6.1.6.1) actioncable (= 6.1.7.1)
actionmailbox (= 6.1.6.1) actionmailbox (= 6.1.7.1)
actionmailer (= 6.1.6.1) actionmailer (= 6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
actiontext (= 6.1.6.1) actiontext (= 6.1.7.1)
actionview (= 6.1.6.1) actionview (= 6.1.7.1)
activejob (= 6.1.6.1) activejob (= 6.1.7.1)
activemodel (= 6.1.6.1) activemodel (= 6.1.7.1)
activerecord (= 6.1.6.1) activerecord (= 6.1.7.1)
activestorage (= 6.1.6.1) activestorage (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 6.1.6.1) railties (= 6.1.7.1)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3) rails-dom-testing (2.0.3)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
nokogiri (>= 1.6) nokogiri (>= 1.6)
rails-html-sanitizer (1.4.4) rails-html-sanitizer (1.4.4)
loofah (~> 2.19, >= 2.19.1) loofah (~> 2.19, >= 2.19.1)
railties (6.1.6.1) railties (6.1.7.1)
actionpack (= 6.1.6.1) actionpack (= 6.1.7.1)
activesupport (= 6.1.6.1) activesupport (= 6.1.7.1)
method_source method_source
rake (>= 12.2) rake (>= 12.2)
thor (~> 1.0) thor (~> 1.0)

View File

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