Minor changes
- Updated frontend credit type - Updated sorting of entry credits in `getEntryById()`
This commit is contained in:
1 parent
6aa57cbe71
commit
e9bc8886d4
3 files changed
+6
-2
No files matched your search
@@ -87,7 +87,7 @@ class EntryService {
|
|||||||
{
|
{
|
||||||
model: Cast, as: 'credits',
|
model: Cast, as: 'credits',
|
||||||
where: { cast_type: 'cast' },
|
where: { cast_type: 'cast' },
|
||||||
order: [['order', 'ASC']],
|
order: [['episode_count', 'DESC']],
|
||||||
limit: 10,
|
limit: 10,
|
||||||
include: [{ model: People, as: 'person' }]
|
include: [{ model: People, as: 'person' }]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -162,10 +162,11 @@ export interface Credit {
|
|||||||
id: number;
|
id: number;
|
||||||
entry_id: number;
|
entry_id: number;
|
||||||
people_id: number;
|
people_id: number;
|
||||||
character: string | null;
|
character: string | null; // might contain multiple separated by ;
|
||||||
cast_type: 'cast' | 'crew';
|
cast_type: 'cast' | 'crew';
|
||||||
department: string | null;
|
department: string | null;
|
||||||
job: string | null;
|
job: string | null;
|
||||||
|
episode_count?: number | null;
|
||||||
order: number | null;
|
order: number | null;
|
||||||
people?: People;
|
people?: People;
|
||||||
entry?: Entry;
|
entry?: Entry;
|
||||||
|
|||||||
@@ -12,11 +12,14 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
port: 4200,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://showyback.coolguy.space',
|
target: 'http://showyback.coolguy.space',
|
||||||
|
// target: 'http://localhost:4000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
allowedHosts: ['localhost', 'showyback.coolguy.space', 'showy.coolguy.space'],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user