forked from DebaucheryLibrarian/traxxx
Refactored http timeout handling.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { graphql } from '../api';
|
||||
import { releaseFields } from '../fragments';
|
||||
import { curateUser } from '../curate';
|
||||
|
||||
function initUsersActions(_store, _router) {
|
||||
async function fetchUser(context, username) {
|
||||
@@ -43,45 +45,7 @@ function initUsersActions(_store, _router) {
|
||||
scenes: stashesScenes {
|
||||
comment
|
||||
scene {
|
||||
id
|
||||
title
|
||||
slug
|
||||
url
|
||||
date
|
||||
actors: releasesActors {
|
||||
actor {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
tags: releasesTags {
|
||||
tag {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
entity {
|
||||
id
|
||||
name
|
||||
slug
|
||||
independent
|
||||
parent {
|
||||
id
|
||||
name
|
||||
slug
|
||||
independent
|
||||
}
|
||||
}
|
||||
poster: releasesPosterByReleaseId {
|
||||
media {
|
||||
path
|
||||
thumbnail
|
||||
lazy
|
||||
isS3
|
||||
}
|
||||
}
|
||||
${releaseFields}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,7 +55,7 @@ function initUsersActions(_store, _router) {
|
||||
username,
|
||||
});
|
||||
|
||||
return user;
|
||||
return curateUser(user);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user