Commit 5af89ca1 authored by nanahira's avatar nanahira

clean zombie archive record

parent 06c3388d
Pipeline #17485 passed with stages
in 1 minute and 42 seconds
......@@ -78,6 +78,8 @@ export class MirrorService extends ConsoleLogger implements OnApplicationBootstr
private async saveMirrorFromPath(archive: Archive) {
if (!(await this.packageS3.fileExists(archive.archiveFullPath))) {
this.error(`Archive ${archive.archiveFullPath} does not exist, deleting entry.`);
await this.db.getRepository(Archive).delete({ id: archive.id });
return [];
}
const uploadInfo: UploadInfo = {
......
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