mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding notification when all repacks are migrated
This commit is contained in:
parent
d88e06e289
commit
17febcd88a
31 changed files with 308 additions and 390 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue