forked from AkkomaGang/akkoma-fe
remove apiService from users module
This commit is contained in:
parent
215e51f764
commit
56dc34977e
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
import apiService from '../services/api/api.service.js'
|
|
||||||
import timelineFetcher from '../services/timeline_fetcher/timeline_fetcher.service.js'
|
import timelineFetcher from '../services/timeline_fetcher/timeline_fetcher.service.js'
|
||||||
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
|
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
|
||||||
|
|
||||||
|
@ -22,7 +21,7 @@ const users = {
|
||||||
loginUser (store, userCredentials) {
|
loginUser (store, userCredentials) {
|
||||||
const commit = store.commit
|
const commit = store.commit
|
||||||
commit('beginLogin')
|
commit('beginLogin')
|
||||||
return apiService.verifyCredentials(userCredentials)
|
return store.rootState.api.backendInteractor.verifyCredentials(userCredentials)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
response.json()
|
response.json()
|
||||||
|
|
|
@ -11,7 +11,8 @@ const backendInteractorService = (credentials) => {
|
||||||
|
|
||||||
const backendInteractorServiceInstance = {
|
const backendInteractorServiceInstance = {
|
||||||
fetchStatus,
|
fetchStatus,
|
||||||
fetchConversation
|
fetchConversation,
|
||||||
|
verifyCredentials: apiService.verifyCredentials
|
||||||
}
|
}
|
||||||
|
|
||||||
return backendInteractorServiceInstance
|
return backendInteractorServiceInstance
|
||||||
|
|
Loading…
Reference in a new issue