4230: added functionality for new interior generation (#156)
* added functionality for new interior generation * update * fixes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { InteriorAPI } from '../datasources/interior-api';
|
||||
import { InteriorsFilterInput } from '../types/interior-types';
|
||||
import { InteriorsInput } from '../types/interior-types';
|
||||
|
||||
const Interior = {};
|
||||
|
||||
async function getInteriors(_, args: InteriorsFilterInput, { dataSources }) {
|
||||
return (<InteriorAPI>dataSources.interiorApi).getInteriors(args.filter);
|
||||
async function getInteriors(_, args: InteriorsInput, { dataSources }) {
|
||||
return (<InteriorAPI>dataSources.interiorApi).getInteriors(args.input);
|
||||
}
|
||||
|
||||
export const interiorTypeDefs = { Interior };
|
||||
|
||||
Reference in New Issue
Block a user