fix: fix type import from server side crashing build process

pull/167/head
sct 4 years ago
parent 250f48492c
commit 89be56d840

@ -0,0 +1,11 @@
import type Media from '../../entity/Media';
export interface MediaResultsResponse {
pageInfo: {
pages: number;
page: number;
results: number;
pageSize: number;
};
results: Media[];
}

@ -5,16 +5,7 @@ import { MediaStatus } from '../constants/media';
import logger from '../logger';
import { isAuthenticated } from '../middleware/auth';
import { Permission } from '../lib/permissions';
export interface MediaResultsResponse {
pageInfo: {
pages: number;
page: number;
results: number;
pageSize: number;
};
results: Media[];
}
import { MediaResultsResponse } from '../interfaces/api/mediaInterfaces';
const mediaRoutes = Router();

@ -14,7 +14,7 @@ import Link from 'next/link';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { LanguageContext } from '../../context/LanguageContext';
import type Media from '../../../server/entity/Media';
import type { MediaResultsResponse } from '../../../server/routes/media';
import type { MediaResultsResponse } from '../../../server/interfaces/api/mediaInterfaces';
const messages = defineMessages({
recentrequests: 'Recent Requests',

Loading…
Cancel
Save