mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix: show recently added series even if they are not complete
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Router } from 'express';
|
||||
import { getRepository, FindOperator, FindOneOptions } from 'typeorm';
|
||||
import { getRepository, FindOperator, FindOneOptions, In } from 'typeorm';
|
||||
import Media from '../entity/Media';
|
||||
import { MediaStatus } from '../constants/media';
|
||||
import logger from '../logger';
|
||||
@@ -27,6 +27,12 @@ mediaRoutes.get('/', async (req, res, next) => {
|
||||
case 'partial':
|
||||
statusFilter = MediaStatus.PARTIALLY_AVAILABLE;
|
||||
break;
|
||||
case 'allavailable':
|
||||
statusFilter = In([
|
||||
MediaStatus.AVAILABLE,
|
||||
MediaStatus.PARTIALLY_AVAILABLE,
|
||||
]);
|
||||
break;
|
||||
case 'processing':
|
||||
statusFilter = MediaStatus.PROCESSING;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user