Commit b10349546986491176a1edc9cd15cd2ae2cb2c8b

Authored by Jeff Lai
1 parent 8fe64243
Exists in master

Always initialize permanent code in sub Base classes

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
lib/dingtalk/client.rb
... ... @@ -52,15 +52,15 @@ module Dingtalk
52 52 end
53 53  
54 54 def department
55   - Api::Department.new(@corp_id)
  55 + Api::Department.new(@corp_id, @permanent_code)
56 56 end
57 57  
58 58 def user
59   - Api::User.new(@corp_id)
  59 + Api::User.new(@corp_id, @permanent_code)
60 60 end
61 61  
62 62 def message
63   - Api::Message.new(@corp_id)
  63 + Api::Message.new(@corp_id, @permanent_code)
64 64 end
65 65  
66 66 private
... ...