Commit 1286459a authored by nanahira's avatar nanahira

dont skip disabled mirror

parent b5fc237d
Pipeline #17483 passed with stages
in 1 minute and 22 seconds
...@@ -136,7 +136,13 @@ export class MirrorService extends ConsoleLogger implements OnApplicationBootstr ...@@ -136,7 +136,13 @@ export class MirrorService extends ConsoleLogger implements OnApplicationBootstr
.where('archive.size <= :maximumMirroredSize', { maximumMirroredSize: this.maximumMirroredSize }); .where('archive.size <= :maximumMirroredSize', { maximumMirroredSize: this.maximumMirroredSize });
query query
.andWhere( .andWhere(
`not exists ${query.subQuery().select('mirror.path').from(ArchiveMirror, 'mirror').where('archive.path = mirror.path').getQuery()}` `not exists ${query
.subQuery()
.select('mirror.path')
.from(ArchiveMirror, 'mirror')
.where('archive.path = mirror.path')
.andWhere('mirror.disabled = false')
.getQuery()}`
) )
// .orderBy('archive.id', 'DESC') // .orderBy('archive.id', 'DESC')
.take(this.mirrorConcurrent); .take(this.mirrorConcurrent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment