mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: removing unique from download source name
This commit is contained in:
parent
3aa20aa7d9
commit
8fccbb6d81
2 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,7 @@ export class DownloadSource {
|
||||||
@Column("text", { nullable: true, unique: true })
|
@Column("text", { nullable: true, unique: true })
|
||||||
url: string;
|
url: string;
|
||||||
|
|
||||||
@Column("text", { unique: true })
|
@Column("text")
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@OneToMany(() => Repack, (repack) => repack.downloadSource, { cascade: true })
|
@OneToMany(() => Repack, (repack) => repack.downloadSource, { cascade: true })
|
||||||
|
|
|
@ -24,8 +24,6 @@ const validateDownloadSource = async (
|
||||||
name: "list",
|
name: "list",
|
||||||
})) as GameRepack[];
|
})) as GameRepack[];
|
||||||
|
|
||||||
console.log(repacks);
|
|
||||||
|
|
||||||
const existingUris = source.downloads
|
const existingUris = source.downloads
|
||||||
.flatMap((download) => download.uris)
|
.flatMap((download) => download.uris)
|
||||||
.filter((uri) => repacks.some((repack) => repack.magnet === uri));
|
.filter((uri) => repacks.some((repack) => repack.magnet === uri));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue