Ver Fonte

refactor

Yuki Takei há 4 anos atrás
pai
commit
e5bba145cc

+ 1 - 1
packages/app/src/client/services/AdminSlackIntegrationLegacyContainer.js

@@ -33,7 +33,7 @@ export default class AdminSlackIntegrationLegacyContainer extends Container {
   /**
    * Retrieve notificationData
    */
-  async retrieveNotificationData() {
+  async retrieveData() {
     const response = await this.appContainer.apiv3.get('/slack-integration-legacy-settings/');
     const { slackIntegrationParams } = response.data;
 

+ 1 - 1
packages/app/src/components/Admin/LegacySlackIntegration/LegacySlackIntegration.jsx

@@ -23,7 +23,7 @@ function LegacySlackIntegration(props) {
   if (adminSlackIntegrationLegacyContainer.state.webhookUrl === adminSlackIntegrationLegacyContainer.dummyWebhookUrl) {
     throw (async() => {
       try {
-        await adminSlackIntegrationLegacyContainer.retrieveNotificationData();
+        await adminSlackIntegrationLegacyContainer.retrieveData();
       }
       catch (err) {
         const errs = toArrayIfNot(err);