mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: showing multiple download options
This commit is contained in:
parent
c218070463
commit
42ea35441c
17 changed files with 118 additions and 98 deletions
|
@ -8,11 +8,18 @@ export class RepacksManager {
|
|||
private static repacksIndex = new flexSearch.Index();
|
||||
|
||||
public static async updateRepacks() {
|
||||
this.repacks = await repackRepository.find({
|
||||
order: {
|
||||
createdAt: "DESC",
|
||||
},
|
||||
});
|
||||
this.repacks = await repackRepository
|
||||
.find({
|
||||
order: {
|
||||
createdAt: "DESC",
|
||||
},
|
||||
})
|
||||
.then((repacks) =>
|
||||
repacks.map((repack) => ({
|
||||
...repack,
|
||||
uris: JSON.parse(repack.uris),
|
||||
}))
|
||||
);
|
||||
|
||||
for (let i = 0; i < this.repacks.length; i++) {
|
||||
this.repacksIndex.remove(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue