Skip to content

Commit

Permalink
chore: import CreateVacResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Jan 13, 2025
1 parent bcc409d commit c06cbd7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions apps/overige-objecten-api/src/controllers/objects/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import snakeCase from 'lodash.snakecase';
import slugify from 'slugify';
import { v4 } from 'uuid';
import { CREATE_INTERNAL_FIELD, CREATE_KENNISARTIKEL, CREATE_VAC } from '../../queries';
import type { CreateInternalField, CreateProduct, DataVacItem } from '../../strapi-product-type';
import type { CreateInternalField, CreateProduct, CreateVacResponse } from '../../strapi-product-type';
import type { components } from '../../types/openapi';
import {
concatenateFieldValues,
Expand All @@ -13,13 +13,6 @@ import {
getTheServerURL,
mapContentByCategory,
} from '../../utils';
type VACData = {
data: {
createVac: {
data: DataVacItem;
};
};
};

const categoryToKeyMap: { [key: string]: string } = {
bewijs: 'bewijs',
Expand Down Expand Up @@ -66,7 +59,7 @@ export const createVacController: RequestHandler = async (req, res, next) => {
trefwoorden: vac?.trefwoorden,
},
};
const { data: responseData } = await fetchData<VACData>({
const { data: responseData } = await fetchData<CreateVacResponse>({
url: graphqlURL.href,
query: CREATE_VAC,
variables: { locale, data: vacPayload },
Expand Down

0 comments on commit c06cbd7

Please sign in to comment.