mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 19:01:02 +00:00
feat: adding notification when all repacks are migrated
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import { DownloadManager, PythonInstance, startMainLoop } from "./services";
|
||||
import {
|
||||
downloadQueueRepository,
|
||||
// repackRepository,
|
||||
userPreferencesRepository,
|
||||
} from "./repository";
|
||||
import { UserPreferences } from "./entity";
|
||||
import { RealDebridClient } from "./services/real-debrid";
|
||||
// import { fetchDownloadSourcesAndUpdate } from "./helpers";
|
||||
// import { publishNewRepacksNotifications } from "./services/notifications";
|
||||
// import { MoreThan } from "typeorm";
|
||||
import { HydraApi } from "./services/hydra-api";
|
||||
import { uploadGamesBatch } from "./services/library-sync";
|
||||
|
||||
@@ -39,18 +35,6 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
||||
}
|
||||
|
||||
startMainLoop();
|
||||
|
||||
// const now = new Date();
|
||||
|
||||
// fetchDownloadSourcesAndUpdate().then(async () => {
|
||||
// const newRepacksCount = await repackRepository.count({
|
||||
// where: {
|
||||
// createdAt: MoreThan(now),
|
||||
// },
|
||||
// });
|
||||
|
||||
// if (newRepacksCount > 0) publishNewRepacksNotifications(newRepacksCount);
|
||||
// });
|
||||
};
|
||||
|
||||
userPreferencesRepository
|
||||
|
||||
Reference in New Issue
Block a user