move collect prepared data to single file

This commit is contained in:
vchikalkin 2023-03-22 15:00:50 +03:00
parent 9b2a19cc98
commit b9b8ac580f
3 changed files with 1156 additions and 1181 deletions

View File

@ -1,6 +1,6 @@
import { user } from '../../middleware';
import { t } from '../../server';
import { prepareData } from './prepare-data';
import { collectPrepareData } from './prepare-data';
import { CalculateInputSchema, CalculateOutputSchema } from './types';
import { validate } from './validation';
import initializeApollo from '@/apollo/client';
@ -30,7 +30,7 @@ const calculateRouter = t.router({
};
}
const preparedData = await prepareData({
const preparedData = await collectPrepareData({
context: {
apolloClient,
queryClient,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff