Changed book status to smallint. Added media_type to series. Added 'Hanashi Media' regex resolver for searching. Removed 'Fiction' limitation when searching. Added update series to add new volumes. Fixed search when not all volumes would show up.
This commit is contained in:
@ -3,10 +3,10 @@ import { Injectable } from '@nestjs/common';
|
||||
import { Queue } from 'bullmq';
|
||||
import { PinoLogger } from 'nestjs-pino';
|
||||
import { BooksService } from 'src/books/books.service';
|
||||
import { CreateBookDto } from 'src/books/dto/create-book.dto';
|
||||
import { BookSearchResultDto } from 'src/providers/dto/book-search-result.dto';
|
||||
import { CreateSeriesDto } from 'src/series/dto/create-series.dto';
|
||||
import { SeriesSubscriptionDto } from 'src/series/dto/series-subscription.dto';
|
||||
import { SeriesDto } from 'src/series/dto/series.dto';
|
||||
import { SeriesService } from 'src/series/series.service';
|
||||
import { BookOriginType } from 'src/shared/enums/book_origin_type';
|
||||
|
||||
@ -26,7 +26,7 @@ export class LibraryService {
|
||||
this.logger.debug({
|
||||
class: LibraryService.name,
|
||||
method: this.addSubscription.name,
|
||||
series: series.providerSeriesId,
|
||||
series: series,
|
||||
msg: 'Series saved to database.',
|
||||
});
|
||||
|
||||
@ -135,4 +135,12 @@ export class LibraryService {
|
||||
|
||||
return bookId;
|
||||
}
|
||||
|
||||
async updateSeries(series: CreateSeriesDto) {
|
||||
return await this.jobs.add('update_series', series);
|
||||
}
|
||||
|
||||
async getBooksFromSeries(series: SeriesDto) {
|
||||
return await this.books.findBooksFromSeries(series);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user