mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 13:51:02 +00:00
18 lines
369 B
TypeScript
18 lines
369 B
TypeScript
import { collectionRepository } from "@main/repository";
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const getCollections = async () =>
|
|
collectionRepository.find({
|
|
relations: {
|
|
games: {
|
|
downloadQueue: true,
|
|
repack: true,
|
|
},
|
|
},
|
|
order: {
|
|
title: "asc",
|
|
},
|
|
});
|
|
|
|
registerEvent("getCollections", getCollections);
|