diff --git a/src/main/entity/download-source.entity.ts b/src/main/entity/download-source.entity.ts index 1f302611..ade42ce2 100644 --- a/src/main/entity/download-source.entity.ts +++ b/src/main/entity/download-source.entity.ts @@ -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 }) diff --git a/src/main/events/download-sources/validate-download-source.ts b/src/main/events/download-sources/validate-download-source.ts index 20a3fca7..f0153eee 100644 --- a/src/main/events/download-sources/validate-download-source.ts +++ b/src/main/events/download-sources/validate-download-source.ts @@ -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));