move collect prepared data to single file
This commit is contained in:
parent
9b2a19cc98
commit
b9b8ac580f
@ -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
Loading…
x
Reference in New Issue
Block a user