mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-03 21:00:09 +00:00
cleanup dep jobs
This commit is contained in:
@@ -175,10 +175,7 @@ export class SchedulerService {
|
|||||||
*/
|
*/
|
||||||
private async cleanupDeprecatedJobs(): Promise<void> {
|
private async cleanupDeprecatedJobs(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const deprecatedTypes = [
|
const deprecatedTypes = ['sync_goodreads_shelves'];
|
||||||
'sync_goodreads_shelves',
|
|
||||||
'sync_hardcover_shelves',
|
|
||||||
];
|
|
||||||
|
|
||||||
const obsoleteJobs = await prisma.scheduledJob.findMany({
|
const obsoleteJobs = await prisma.scheduledJob.findMany({
|
||||||
where: { type: { in: deprecatedTypes } },
|
where: { type: { in: deprecatedTypes } },
|
||||||
|
|||||||
Reference in New Issue
Block a user