Skip to content
Snippets Groups Projects
Commit 56dc3497 authored by lain's avatar lain
Browse files

remove apiService from users module

parent 215e51f7
No related branches found
No related tags found
No related merge requests found
import apiService from '../services/api/api.service.js'
import timelineFetcher from '../services/timeline_fetcher/timeline_fetcher.service.js'
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
......@@ -22,7 +21,7 @@ const users = {
loginUser (store, userCredentials) {
const commit = store.commit
commit('beginLogin')
return apiService.verifyCredentials(userCredentials)
return store.rootState.api.backendInteractor.verifyCredentials(userCredentials)
.then((response) => {
if (response.ok) {
response.json()
......
......@@ -11,7 +11,8 @@ const backendInteractorService = (credentials) => {
const backendInteractorServiceInstance = {
fetchStatus,
fetchConversation
fetchConversation,
verifyCredentials: apiService.verifyCredentials
}
return backendInteractorServiceInstance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment