feat: removing unique from download source name

This commit is contained in:
Chubby Granny Chaser 2024-06-03 15:07:55 +01:00
parent 3aa20aa7d9
commit 8fccbb6d81
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View file

@ -16,7 +16,7 @@ export class DownloadSource {
@Column("text", { nullable: true, unique: true })
url: string;
@Column("text", { unique: true })
@Column("text")
name: string;
@OneToMany(() => Repack, (repack) => repack.downloadSource, { cascade: true })

View file

@ -24,8 +24,6 @@ const validateDownloadSource = async (
name: "list",
})) as GameRepack[];
console.log(repacks);
const existingUris = source.downloads
.flatMap((download) => download.uris)
.filter((uri) => repacks.some((repack) => repack.magnet === uri));