Skip to content

Commit

Permalink
chore: remove wechat integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Jan 22, 2024
1 parent bcb2aff commit 269a224
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1,370 deletions.
11 changes: 0 additions & 11 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ module.exports = {
const integrations = []

const zulip = require('./integrations/zulip/server')
const wechat = require('./integrations/wechat/server')

if (process.env.ZULIP_API_KEY) {
const zulipConfig = {
Expand All @@ -71,16 +70,6 @@ if (process.env.ZULIP_API_KEY) {
}
integrations.push(zulip(zulipConfig))
}
if (process.env.WECHAT_TOKEN) {
const wechatConfig = {
corpId: process.env.WECHAT_CORP_ID,
secret: process.env.WECHAT_SECRET,
agentId: process.env.WECHAT_AGENT_ID,
token: process.env.WECHAT_TOKEN,
encodingAESKey: process.env.WECHAT_ENCODING_AES_KEY,
}
integrations.push(wechat(wechatConfig))
}

module.exports.integrations = integrations

Expand Down
217 changes: 0 additions & 217 deletions integrations/wechat/server.js

This file was deleted.

7 changes: 1 addition & 6 deletions modules/Settings/CustomerServiceProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ class CustomerServiceProfile extends Component {
}

handleSubmit(e) {
e.preventDefault()
auth.currentUser
.update({
wechatEnterpriseUserId: this.state.wechatUserId,
})
.catch(this.context.addNotification)
// Legacy code removed
}

render() {
Expand Down
Loading

0 comments on commit 269a224

Please sign in to comment.