diff options
| author | taehoon <th.dev91@gmail.com> | 2019-03-30 07:22:30 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-04-27 08:31:06 -0400 |
| commit | 6ea4154084b288f6f67ccf9c10829013c3cbe892 (patch) | |
| tree | b26ddb02397bc71e7841c3a67d82788b9a911bac /src | |
| parent | 6d0e98a1c2c81c587b89736dbd2ac43a8c540d54 (diff) | |
change api function name
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/user_settings/user_settings.js | 2 | ||||
| -rw-r--r-- | src/services/api/api.service.js | 4 | ||||
| -rw-r--r-- | src/services/backend_interactor_service/backend_interactor_service.js | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index 32e92dc4..fa252e59 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -235,7 +235,7 @@ const UserSettings = { }) }, importFollows (file) { - return this.$store.state.api.backendInteractor.followImport(file) + return this.$store.state.api.backendInteractor.importFollows(file) .then((status) => { if (!status) { throw new Error('failed') diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index 3f6ffccc..dbcde41d 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -634,7 +634,7 @@ const uploadMedia = ({formData, credentials}) => { .then((data) => parseAttachment(data)) } -const followImport = ({file, credentials}) => { +const importFollows = ({file, credentials}) => { const formData = new FormData() formData.append('list', file) return fetch(FOLLOW_IMPORT_URL, { @@ -778,7 +778,7 @@ const apiService = { updateProfile, updateBanner, externalProfile, - followImport, + importFollows, deleteAccount, changePassword, fetchFollowRequests, diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index 2438c603..726c8ced 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -107,7 +107,7 @@ const backendInteractorService = (credentials) => { const updateProfile = ({params}) => apiService.updateProfile({credentials, params}) const externalProfile = (profileUrl) => apiService.externalProfile({profileUrl, credentials}) - const followImport = (file) => apiService.followImport({file, credentials}) + const importFollows = (file) => apiService.importFollows({file, credentials}) const deleteAccount = ({password}) => apiService.deleteAccount({credentials, password}) const changePassword = ({password, newPassword, newPasswordConfirmation}) => apiService.changePassword({credentials, password, newPassword, newPasswordConfirmation}) @@ -147,7 +147,7 @@ const backendInteractorService = (credentials) => { updateBanner, updateProfile, externalProfile, - followImport, + importFollows, deleteAccount, changePassword, fetchFollowRequests, |
