mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 22:01:03 +00:00
refactor: Update import paths and improve async function in get-magnet-health
This commit is contained in:
10
src/main/events/catalogue/repacks/get-magnet-health.ts
Normal file
10
src/main/events/catalogue/repacks/get-magnet-health.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { webTorrentData } from "@main/services/web-torrent-data"
|
||||
import { registerEvent } from "../../register-event"
|
||||
|
||||
const getMagnetHealth = async (_event: Electron.IpcMainInvokeEvent, magnet: string) => {
|
||||
return webTorrentData.getSeedersAndPeers(magnet)
|
||||
}
|
||||
|
||||
registerEvent(getMagnetHealth, {
|
||||
name: 'getMagnetHealth'
|
||||
})
|
||||
Reference in New Issue
Block a user