Commit 978aa754 authored by Matija Obreza's avatar Matija Obreza
Browse files

Removed unnecessary authentication calls

parent aea04d62
......@@ -68,7 +68,7 @@ module.exports = {
}
// If authorization header is not provided, use access_token from cookie
// console.log('Cookies', req.headers.cookie, req);
// console.log('Cookies & Authorization', req.headers.cookie, req.headers.authorization);
if (! req.headers.authorization && req.headers.cookie) {
const authorization = req.headers.cookie.match(/access_token=([^;]+)/);
// console.log('Cookies', req.headers.cookie, authorization);
......
......@@ -20,11 +20,9 @@ const receiveCrops = (crops: Crop[]): IReducerAction => ({
});
export const loadCrop = (uuid: string) => (dispatch, getState) => {
const token = getState().login.access_token;
dispatch({type: GET_CROP, payload: uuid});
return CropService.getCrop(token, uuid)
return CropService.getCrop(uuid)
.then((crop) => {
return dispatch(receiveCrop(crop));
}).catch((error) => {
......@@ -43,7 +41,7 @@ export const editCrop = (uuid: string) => (dispatch, getState) => {
export const listCrops = () => (dispatch, getState) => {
return CropService.listCrops(getState().login.access_token)
return CropService.listCrops()
.then((list) => {
dispatch(receiveCrops(list));
})
......@@ -54,7 +52,7 @@ export const listCrops = () => (dispatch, getState) => {
export const saveCrop = (crop: Crop) => (dispatch, getState) => {
return CropService.saveCrop(getState().login.access_token, crop)
return CropService.saveCrop(crop)
.then((saved) => {
dispatch(receiveCrop(saved));
dispatch(push('/crops'));
......@@ -64,7 +62,7 @@ export const saveCrop = (crop: Crop) => (dispatch, getState) => {
};
export const deleteCrop = (crop: Crop) => (dispatch, getState) => {
return CropService.deleteCrop(getState().login.access_token, crop)
return CropService.deleteCrop(crop)
.then((crop) => {
dispatch(push('/crops'));
})
......
......@@ -35,9 +35,8 @@ function editDataset(uuid: string) {
function listMyDatasets(page?, results?, sortBy?, filter?, order?) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return DatasetService.listMyDatasets(token, page, results, sortBy, filter, order)
return DatasetService.listMyDatasets(page, results, sortBy, filter, order)
.then((paged) => {
dispatch(receiveDatasetPage(paged, page, results, sortBy, filter, order));
})
......@@ -48,10 +47,9 @@ function listMyDatasets(page?, results?, sortBy?, filter?, order?) {
}
function listDatasetsRequest(page?, results?, sortBy?, filter?, order?) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.listDatasets(token, page, results, sortBy, filter, order)
return DatasetService.listDatasets(page, results, sortBy, filter, order)
.then((paged) => {
return dispatch(receiveDatasetPage(paged, page, results, sortBy, filter, order));
})
......@@ -62,10 +60,9 @@ function listDatasetsRequest(page?, results?, sortBy?, filter?, order?) {
}
function loadDataset(uuid: string) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.getDataset(token, uuid)
return DatasetService.getDataset(uuid)
.then((dataset) => {
dispatch(receiveDataset(dataset));
})
......@@ -81,7 +78,7 @@ const createDataset = () => (dispatch) => {
return dispatch(push(`/datasets/edit`));
};
const saveDataset = (dataset: Dataset) => (dispatch, getState) => {
const saveDataset = (dataset: Dataset) => (dispatch) => {
// remove normalized data here
const data = new Dataset({
......@@ -92,9 +89,7 @@ const saveDataset = (dataset: Dataset) => (dispatch, getState) => {
descriptors: [],
});
const token = getState().login.access_token;
return DatasetService.saveDataset(token, data)
return DatasetService.saveDataset(data)
.then((saved) => {
dispatch(receiveDataset(saved));
}).catch((error) => {
......@@ -103,11 +98,9 @@ const saveDataset = (dataset: Dataset) => (dispatch, getState) => {
};
function publishDataset(dataset: Dataset, published: boolean = true) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.publishDataset(token, dataset, published)
return DatasetService.publishDataset(dataset, published)
.then((saved) => {
dispatch(receiveDataset(saved));
dispatch(showDataset(saved.uuid));
......@@ -118,10 +111,9 @@ function publishDataset(dataset: Dataset, published: boolean = true) {
}
function updateDatasetAccessionIdentifiers(dataset: Dataset, accessionIdentifiers: AccessionIdentifier[]) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.updateAccessionIdentifiers(token, dataset, accessionIdentifiers)
return DatasetService.updateAccessionIdentifiers(dataset, accessionIdentifiers)
.then((saved) => {
dispatch(receiveDataset(saved));
}).catch((error) => {
......@@ -132,10 +124,9 @@ function updateDatasetAccessionIdentifiers(dataset: Dataset, accessionIdentifier
function addDescriptorsToDatasetRequest(dataset: Dataset, descriptor: Descriptor) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.addDescriptorsToDataset(token, dataset, [descriptor.uuid])
return DatasetService.addDescriptorsToDataset(dataset, [descriptor.uuid])
.then((saved) => {
dispatch(receiveDataset(saved));
}).catch((error) => {
......@@ -145,10 +136,9 @@ function addDescriptorsToDatasetRequest(dataset: Dataset, descriptor: Descriptor
}
function removeDescriptorsFromDatasetRequest(dataset: Dataset, descriptor: Descriptor) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DatasetService.removeDescriptorsFromDataset(token, dataset, [descriptor.uuid])
return DatasetService.removeDescriptorsFromDataset(dataset, [descriptor.uuid])
.then((saved) => {
dispatch(receiveDataset(saved));
}).catch((error) => {
......@@ -163,10 +153,9 @@ export {
addDescriptorsToDatasetRequest, removeDescriptorsFromDatasetRequest,
};
const uploadRepositoryFileRequest = (dataset: Dataset, file: File) => (dispatch, getState) => {
const token = getState().login.access_token;
const uploadRepositoryFileRequest = (dataset: Dataset, file: File) => (dispatch) => {
return RepositoryFileService.saveRepositoryFile(token, dataset.uuid, file)
return RepositoryFileService.saveRepositoryFile(dataset.uuid, file)
.then((dataset) => {
dispatch(receiveDataset(dataset));
}).catch((error) => {
......@@ -174,10 +163,9 @@ const uploadRepositoryFileRequest = (dataset: Dataset, file: File) => (dispatch,
});
};
const deleteRepositoryFileRequest = (dataset: Dataset, uuid: string) => (dispatch, getState) => {
const token = getState().login.access_token;
const deleteRepositoryFileRequest = (dataset: Dataset, uuid: string) => (dispatch) => {
return RepositoryFileService.deleteRepositoryFile(token, dataset.uuid, uuid)
return RepositoryFileService.deleteRepositoryFile(dataset.uuid, uuid)
.then((dataset) => {
dispatch(receiveDataset(dataset));
}).catch((error) => {
......@@ -201,7 +189,7 @@ function addCreatorToDataset(creator: Creator, uuid: string) {
function createDatasetCreator(uuid: string) {
return (dispatch, getState) => {
console.log('createCreator');
return CreatorService.createCreator(getState().login.access_token, uuid)
return CreatorService.createCreator(uuid)
.then((obj) => {
dispatch(addCreatorToDataset(obj, uuid));
}).catch((error) => {
......@@ -220,9 +208,8 @@ function updateCreator(creator: Creator) {
}
function updateCreatorRequest(uuid: string, creator: Creator) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return CreatorService.updateCreator(token, uuid, creator)
return (dispatch) => {
return CreatorService.updateCreator(uuid, creator)
.then((obj) => {
dispatch(updateCreator(obj));
}).catch((error) => {
......@@ -242,9 +229,8 @@ function removeCreator(creator: Creator, uuid: string) {
}
function deleteCreatorRequest(uuid: string, creator: Creator) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return CreatorService.deleteCreator(token, uuid, creator)
return (dispatch) => {
return CreatorService.deleteCreator(uuid, creator)
.then((obj) => {
dispatch(removeCreator(obj, uuid));
}).catch((error) => {
......@@ -271,10 +257,9 @@ function addLocation(datasetUUID: string, location: Location) {
function createLocationRequest(datasetUUID: string) {
const location = new Location({});
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return LocationService.saveLocation(token, datasetUUID, location)
return LocationService.saveLocation(datasetUUID, location)
.then((saved) => {
dispatch(addLocation(datasetUUID, saved));
}).catch((error) => {
......@@ -294,10 +279,9 @@ function receiveLocation(location: Location) {
function updateLocationRequest(datasetUUID: string, location: Location) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return LocationService.saveLocation(token, datasetUUID, location)
return LocationService.saveLocation(datasetUUID, location)
.then((saved) => {
dispatch(receiveLocation(saved));
}).catch((error) => {
......@@ -317,10 +301,9 @@ function deleteLocation(datasetUUID: string, location: Location) {
}
function deleteLocationRequest(datasetUUID: string, location: Location) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return LocationService.deleteLocation(token, datasetUUID, location)
return LocationService.deleteLocation(datasetUUID, location)
.then((saved) => {
dispatch(deleteLocation(datasetUUID, saved));
}).catch((error) => {
......
......@@ -27,13 +27,12 @@ const loadingDescriptorLists = (page, results, sortBy, filter, order) => ({
});
// Just load a descriptor list
export const loadDescriptorList = (uuid: string) => (dispatch, getState) => {
export const loadDescriptorList = (uuid: string) => (dispatch) => {
console.log('Loading descriptor list', uuid);
const token = getState().login.access_token;
dispatch({ type: GET_DESCRIPTORLIST, payload: uuid });
return DescriptorListService.loadDescriptorList(token, uuid)
return DescriptorListService.loadDescriptorList(uuid)
// receive the current descriptor list
.then((descriptorList) => {
return dispatch(receiveDescriptorList(descriptorList));
......@@ -43,13 +42,12 @@ export const loadDescriptorList = (uuid: string) => (dispatch, getState) => {
};
// List current user's descriptor lists
export const listMyDescriptorLists = (page?, results?, sortBy?, filter?, order?) => (dispatch, getState) => {
export const listMyDescriptorLists = (page?, results?, sortBy?, filter?, order?) => (dispatch) => {
console.log('Loading my descriptor lists');
const token = getState().login.access_token;
dispatch(loadingDescriptorLists(page, results, sortBy, filter, order));
return DescriptorListService.listMyDescriptorLists(token, page, results, sortBy, filter, order)
return DescriptorListService.listMyDescriptorLists(page, results, sortBy, filter, order)
// receive the current descriptor list
.then((descriptorLists) => {
return dispatch(receiveDescriptorLists(descriptorLists, page, results, sortBy, filter, order));
......@@ -59,13 +57,12 @@ export const listMyDescriptorLists = (page?, results?, sortBy?, filter?, order?)
};
// List published descriptor lists
export const listDescriptorLists = (page?, results?, sortBy?, filter?, order?) => (dispatch, getState) => {
export const listDescriptorLists = (page?, results?, sortBy?, filter?, order?) => (dispatch) => {
console.log('Loading published descriptor lists');
const token = getState().login.access_token;
dispatch(loadingDescriptorLists(page, results, sortBy, filter, order));
return DescriptorListService.listDescriptorLists(token, page, results, sortBy, filter, order)
return DescriptorListService.listDescriptorLists(page, results, sortBy, filter, order)
// receive the current descriptor list
.then((descriptorLists) => {
return dispatch(receiveDescriptorLists(descriptorLists, page, results, sortBy, filter, order));
......@@ -81,18 +78,18 @@ export const createDescriptorList = () => (dispatch) => {
};
// Edit an existing descriptor list
export const editDescriptorList = (uuid: string) => (dispatch, getState) => {
export const editDescriptorList = (uuid: string) => (dispatch) => {
return dispatch(loadDescriptorList(uuid))
.then((descriptorList) => dispatch(push(`/descriptorlist/${descriptorList.uuid}/edit`)));
};
// Save the descriptor list
export const saveDescriptorList = (descriptorList: DescriptorList) => (dispatch, getState) => {
export const saveDescriptorList = (descriptorList: DescriptorList) => (dispatch) => {
console.log('Saving descriptor list', descriptorList);
const createOrSave = descriptorList.version ? DescriptorListService.updateDescriptorList : DescriptorListService.createDescriptorList;
return createOrSave(getState().login.access_token, descriptorList)
return createOrSave(descriptorList)
// when response is back
.then((descriptorList) => {
// receive the updated descriptor list
......@@ -105,8 +102,8 @@ export const saveDescriptorList = (descriptorList: DescriptorList) => (dispatch,
};
// Publish the descriptor list
export const publishDescriptorList = (descriptorList: DescriptorList, published?: boolean) => (dispatch, getState) => {
return DescriptorListService.publishDescriptorList(getState().login.access_token, descriptorList, published)
export const publishDescriptorList = (descriptorList: DescriptorList, published?: boolean) => (dispatch) => {
return DescriptorListService.publishDescriptorList(descriptorList, published)
.then((descriptorList) => {
// receive updates
dispatch(receiveDescriptorList(descriptorList));
......@@ -116,8 +113,8 @@ export const publishDescriptorList = (descriptorList: DescriptorList, published?
};
// Add a descriptor to the descriptor list
export const addDescriptorToDescriptorList = (descriptorList: DescriptorList, descriptor: Descriptor) => (dispatch, getState) => {
return DescriptorListService.addDescriptor(getState().login.access_token, descriptorList, [ descriptor.uuid ])
export const addDescriptorToDescriptorList = (descriptorList: DescriptorList, descriptor: Descriptor) => (dispatch) => {
return DescriptorListService.addDescriptor(descriptorList, [ descriptor.uuid ])
.then((descriptorList) => {
// receive updates
dispatch(receiveDescriptorList(descriptorList));
......@@ -125,8 +122,8 @@ export const addDescriptorToDescriptorList = (descriptorList: DescriptorList, de
};
// Remove a descriptor to the descriptor list
export const removeDescriptorFromDescriptorList = (descriptorList: DescriptorList, descriptor: Descriptor) => (dispatch, getState) => {
return DescriptorListService.removeDescriptor(getState().login.access_token, descriptorList, [ descriptor.uuid ])
export const removeDescriptorFromDescriptorList = (descriptorList: DescriptorList, descriptor: Descriptor) => (dispatch) => {
return DescriptorListService.removeDescriptor(descriptorList, [ descriptor.uuid ])
.then((descriptorList) => {
// receive updates
dispatch(receiveDescriptorList(descriptorList));
......
......@@ -36,10 +36,9 @@ export function showDescriptorsDashboard() {
export function loadDescriptor(uuid: string) {
console.log('Loading descriptor', uuid);
return (dispatch, getState) => {
const token = getState().login.access_token;
return (dispatch) => {
return DescriptorService.loadDescriptor(token, uuid)
return DescriptorService.loadDescriptor(uuid)
.then((loaded) => {
dispatch(receiveDescriptor(loaded));
}).catch((error) => {
......@@ -56,16 +55,16 @@ export const createDescriptor = () => (dispatch) => {
};
// Edit an existing descriptor list
export const editDescriptor = (uuid: string) => (dispatch, getState) => {
export const editDescriptor = (uuid: string) => (dispatch) => {
return dispatch(loadDescriptor(uuid))
.then((descriptor) => dispatch(push(`/descriptor/${descriptor.uuid}/edit`)));
};
export const saveDescriptor = (descriptor: Descriptor) => (dispatch, getState) => {
export const saveDescriptor = (descriptor: Descriptor) => (dispatch) => {
console.log('Saving descriptor', descriptor);
const createOrSave = descriptor.version && descriptor.uuid ? DescriptorService.updateDescriptor : DescriptorService.createDescriptor;
return createOrSave(getState().login.access_token, descriptor)
return createOrSave(descriptor)
.then((descriptor) => {
// receive the updated descriptor
dispatch(receiveDescriptor(descriptor));
......@@ -78,13 +77,9 @@ export const saveDescriptor = (descriptor: Descriptor) => (dispatch, getState) =
};
export function listMyDescriptors(page?, results?, sortBy?, filter?, order?) {
return (dispatch, getState) => {
const token = getState().login.access_token;
const state = getState();
return (dispatch) => {
const f = !filter ? state.filter.descriptorFilter : filter;
return DescriptorService.listMyDescriptors(token, page, results, sortBy, f, order)
return DescriptorService.listMyDescriptors(page, results, sortBy, filter, order)
.then((paged) => {
dereferenceReferences(paged.content, 'owner', (o) => new Partner(o));
dispatch(receiveDescriptorPage(paged));
......@@ -96,13 +91,8 @@ export function listMyDescriptors(page?, results?, sortBy?, filter?, order?) {
}
export function loadDescriptors(page?, results?, sortBy?, filter?, order?) {
return (dispatch, getState) => {
const token = getState().login.access_token;
const state = getState();
const f = !filter ? state.filter.descriptorFilter : filter;
return DescriptorService.listDescriptors(token, page, results, sortBy, f, order)
return (dispatch) => {
return DescriptorService.listDescriptors(page, results, sortBy, filter, order)
.then((paged) => {
dereferenceReferences(paged.content, 'owner', (o) => new Partner(o));
dispatch(receiveDescriptorPage(paged));
......@@ -114,11 +104,8 @@ export function loadDescriptors(page?, results?, sortBy?, filter?, order?) {
}
export function publishDescriptor(descriptor: Descriptor, published: boolean = true) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return DescriptorService.publishDescriptor(token, descriptor, published)
return (dispatch) => {
return DescriptorService.publishDescriptor(descriptor, published)
.then((saved) => {
dispatch(receiveDescriptor(saved));
dispatch(showDescriptorsDashboard());
......
......@@ -3,7 +3,7 @@ import {LOGIN_URL, LOGOUT_URL, CHECK_TOKEN_URL, VERIFY_GOOGLE_TOKEN_URL} from 'c
import * as Constants from 'constants/login';
import {clearCookies, saveCookies} from 'utilities';
import {ROLE_CLIENT} from 'constants/userRoles';
import authenticatedRequest from 'utilities/requestUtils';
import httpRequest from 'utilities/requestUtils';
function loginRequest(username, password) {
return (dispatch) => {
......@@ -39,7 +39,7 @@ function logoutRequest() {
return (dispatch, getState) => {
const token = getState().login.access_token;
return authenticatedRequest(token, {
return httpRequest({
url: LOGOUT_URL,
method: 'DELETE',
params: {
......@@ -65,10 +65,8 @@ function checkTokenRequest(token) {
}
function verifyGoogleTokenRequest(accessToken, googleClientId) {
return (dispatch, getState) => {
const token = getState().login.access_token;
return authenticatedRequest(token, {
return (dispatch) => {
return httpRequest({
url: VERIFY_GOOGLE_TOKEN_URL,
method: 'GET',
params: {
......
......@@ -31,8 +31,8 @@ export const createPartner = () => (dispatch) => {
};
// Delete a record
export const deletePartner = (partner: Partner) => (dispatch, getState) => {
return PartnerService.deletePartner(getState().login.access_token, partner)
export const deletePartner = (partner: Partner) => (dispatch) => {
return PartnerService.deletePartner(partner)
.then((partner) => {
dispatch(push(`/partners`));
})
......@@ -42,13 +42,12 @@ export const deletePartner = (partner: Partner) => (dispatch, getState) => {
};
// Just load a record
export const loadPartner = (uuid: string) => (dispatch, getState) => {
export const loadPartner = (uuid: string) => (dispatch) => {
console.log('Loading partner', uuid);
const token = getState().login.access_token;
dispatch({ type: GET_PARTNER, payload: uuid });
return PartnerService.getPartner(token, uuid)
return PartnerService.getPartner(uuid)
// receive the current partner
.then((partner) => {
return dispatch(receivePartner(partner));
......@@ -58,7 +57,7 @@ export const loadPartner = (uuid: string) => (dispatch, getState) => {
};
// Edit an existing partner
export const editPartner = (uuid: string) => (dispatch, getState) => {
export const editPartner = (uuid: string) => (dispatch) => {
dispatch(loadPartner(uuid));
dispatch(push(`/partner/${uuid}/edit`));
};
......@@ -69,8 +68,8 @@ const showPartner = (uuid: string) => (dispatch) => {
};
// List user's partners
const loadMyPartners = () => (dispatch, getState) => {
return PartnerService.listMyPartners(getState().login.access_token, 0, 50)
const loadMyPartners = () => (dispatch) => {
return PartnerService.listMyPartners(0, 50)
.then((paged) => {
dispatch(receiveMyPartnerList(paged.content));
})
......@@ -80,9 +79,9 @@ const loadMyPartners = () => (dispatch, getState) => {
};
// Load them
const loadPartners = (page: number, results: number, sortBy?: string, filter?: IPartnerFilter, order?: string) => (dispatch, getState) => {
const loadPartners = (page: number, results: number, sortBy?: string, filter?: IPartnerFilter, order?: string) => (dispatch) => {
return PartnerService.listPartners(getState().login.access_token, page, results, sortBy, order, filter)
return PartnerService.listPartners(page, results, sortBy, order, filter)
.then((paged) => {
// console.log('fufu', paged);
dispatch(receivePartnerPage(paged, page, results, sortBy, filter, order));
......@@ -92,9 +91,9 @@ const loadPartners = (page: number, results: number, sortBy?: string, filter?: I
});
};
const savePartner = (partner: Partner) => (dispatch, getState) => {
const savePartner = (partner: Partner) => (dispatch) => {
return PartnerService.savePartner(getState().login.access_token, partner)
return PartnerService.savePartner(partner)
.then((saved) => {
dispatch(receivePartner(saved));
dispatch(showPartner(saved.uuid));
......
import * as Constants from 'constants/serverInfo';
import {InfoService} from 'service/InfoService';
import { InfoService } from 'service/InfoService';
function serverInfoRequest() {
return (dispatch, getState) => {
const token = getState().login.access_token;
return InfoService.getServerInfo(token)
.then((data) => dispatch(getServerInfo(data)))
.catch((error) => console.log('Error', error));
};
return (dispatch) => {
return InfoService.getServerInfo()
.then((data) => dispatch(getServerInfo(data)))
.catch((error) => console.log('Error', error));
};
}
function getServerInfo(info) {
return {
type: Constants.GET_SERVER_INFO,
info,
};
return {
type: Constants.GET_SERVER_INFO,
info,
};
}
export {serverInfoRequest, getServerInfo};
export { serverInfoRequest, getServerInfo };
import {Creator, CreatorRole} from 'model/creator.model';
import authenticatedRequest from 'utilities/requestUtils';
import httpRequest from 'utilities/requestUtils';
import {MAIN_URL_PART_CREATOR_URL, CREATE_CREATOR_URL, DELETE_CREATOR_URL, UPDTATE_CREATOR_URL} from 'constants/apiURLS';
// FIXME Move methods to DatasetService
export class CreatorService {
public static createCreator(token: string, uuid: string): Promise<Creator> {
public static createCreator(uuid: string): Promise<Creator> {
console.log('Create Creator');
const creator = { role: CreatorRole.CONTACT, fullName: '' };
return authenticatedRequest(token, {
return httpRequest({
url: `${MAIN_URL_PART_CREATOR_URL}/${uuid}${CREATE_CREATOR_URL}`,
method: 'POST',
data: {
......@@ -17,9 +17,9 @@ export class CreatorService {
}).then(({data}) => new Creator(data));
}
public static deleteCreator(token: string, uuid: string, creator: Creator): Promise<Creator> {
public static deleteCreator(uuid: string, creator: Creator): Promise<Creator> {
return authenticatedRequest(token, {
return httpRequest({
url: `${MAIN_URL_PART_CREATOR_URL}/${uuid}${DELETE_CREATOR_URL}`,
method: 'DELETE',
data: {
......@@ -28,9 +28,9 @@ export class CreatorService {
}).then(({data}) => new Creator(data));
}