ishapi 0.1.8.241 → 0.1.8.242

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f333a98ac2350222402236a59d620a370f15baa3aa85e0ccc73b910b0a6fc14c
4
- data.tar.gz: 69814c20939ae6ac255355f18b7375109a38aa911f37c5cb30de3d477b1d60ba
3
+ metadata.gz: '0432395c7876153064c35c9c289c2442d2a425e52e954d5e51395e1c0e5d2bff'
4
+ data.tar.gz: f33e32b3dc91ca4f4289082639c7af54f4ff0c02a98053f5ecb356bad27f18c9
5
5
  SHA512:
6
- metadata.gz: c9dea2a030a9eaab8955b5a53c4646dbfa3f617e7bb3dd560be968483571a5428fb16118cecbf3a56eb1dc6d7cfcf3b8192f0cd0e9ef5ad4a9908e845d8b0ed2
7
- data.tar.gz: fabd2be1cfc8e0005b0e51a2cdc9e7dac4d7ba81ee255dfdde186c32028a79f0dacc4e4faf8ea43f6ca3bd405433eddf4df3341cd7906e7996d4629a7fe7d146
6
+ metadata.gz: a5fef0cdd135e1bbe0679c2c0b3d271a19f7da7b76bb96e5f2fa72edba50572c709e3202bfef63088609e8b77b1853454db0dc93485cfd2f8a87e0f25674116f
7
+ data.tar.gz: f493726454f20993e09e88518a99c9f3c976538dacbd8c10588f9e170b51a1ba0b37e947431fd03595c06ff11f8c78b2836928d61bb4bdf714838e14a20aead7
@@ -23,8 +23,8 @@ module Ishapi
23
23
  authorize! :email_conversations_delete, ::Ishapi
24
24
  convos = Office::EmailConversation.find params[:ids]
25
25
  outs = convos.map do |convo|
26
- convo.add_tag( WpTag::EMAILTAG_TRASH )
27
- convo.remove_tag( WpTag::EMAILTAG_INBOX )
26
+ convo.add_tag( WpTag::TRASH )
27
+ convo.remove_tag( WpTag::INBOX )
28
28
  end
29
29
  flash[:notice] = "outcome: #{outs}"
30
30
  render json: { status: :ok }
@@ -15,6 +15,8 @@ Ishapi::EmailMessageIntakeJob.perform_now( stub.id.to_s )
15
15
  ## 2023-03-02 _vp_ Continue
16
16
  ## 2023-03-07 _vp_ Continue
17
17
  ##
18
+ ## class name: EIJ
19
+ ##
18
20
  class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
19
21
 
20
22
  # include Sidekiq::Worker ## From: https://stackoverflow.com/questions/59114063/sidekiq-options-giving-sidekiqworker-cannot-be-included-in-an-activejob-for
@@ -65,7 +67,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
65
67
  the_mail = Mail.new(_mail)
66
68
  message_id = the_mail.header['message-id'].decoded
67
69
  in_reply_to_id = the_mail.header['in-reply-to']&.to_s
68
- email_inbox_tag_id = WpTag.emailtag(WpTag::INBOX)
70
+ email_inbox_tag_id = WpTag.emailtag(WpTag::INBOX).id
69
71
 
70
72
  @message = ::Office::EmailMessage.where( message_id: message_id ).first
71
73
  @message ||= ::Office::EmailMessage.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.241
4
+ version: 0.1.8.242
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox