Searching adds DownloadMangaCoverJob

This commit is contained in:
2025-03-07 14:07:08 +01:00
parent 72abc90af3
commit 4075adfe6b
5 changed files with 794 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using API.Schema;
using API.Schema.Jobs;
using API.Schema.MangaConnectors;
using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
@ -155,6 +156,8 @@ public class SearchController(PgsqlContext context) : Controller
else
context.Manga.Add(manga);
context.Jobs.Add(new DownloadMangaCoverJob(manga.MangaId));
context.SaveChanges();
return existing ?? manga;
}