Commit 6158e200 authored by nanahira's avatar nanahira

lint

parent c20df324
...@@ -6,9 +6,7 @@ import Redis from 'ioredis'; ...@@ -6,9 +6,7 @@ import Redis from 'ioredis';
class Redlock { class Redlock {
constructor(private redis: any[]) {} constructor(private redis: any[]) {}
async quit() { async quit() {}
}
async using(...args: any[]) {} async using(...args: any[]) {}
} }
......
...@@ -152,7 +152,7 @@ export class UpdateService extends ConsoleLogger { ...@@ -152,7 +152,7 @@ export class UpdateService extends ConsoleLogger {
throw new BlankReturnMessageDto(404, 'Archive not found').toException(); throw new BlankReturnMessageDto(404, 'Archive not found').toException();
} }
await this.mirror.lookForArchivesMirror(archives, ip); await this.mirror.lookForArchivesMirror(archives, ip);
archives.forEach(a => a.fillUrl(this.cdnUrl, this.cdnUrlOversize)); archives.forEach((a) => a.fillUrl(this.cdnUrl, this.cdnUrlOversize));
return { return {
archives, archives,
}; };
...@@ -163,7 +163,7 @@ export class UpdateService extends ConsoleLogger { ...@@ -163,7 +163,7 @@ export class UpdateService extends ConsoleLogger {
qb.select(['archive.hash', 'archive.path', 'archive.size']).andWhere('archive.role = :fullRole', { fullRole: ArchiveType.Full }) qb.select(['archive.hash', 'archive.path', 'archive.size']).andWhere('archive.role = :fullRole', { fullRole: ArchiveType.Full })
); );
await this.mirror.lookForArchivesMirror(archives, ip); await this.mirror.lookForArchivesMirror(archives, ip);
archives.forEach(a => a.fillUrl(this.cdnUrl, this.cdnUrlOversize)); archives.forEach((a) => a.fillUrl(this.cdnUrl, this.cdnUrlOversize));
return { return {
archives: archives, archives: archives,
}; };
...@@ -310,7 +310,7 @@ export class UpdateService extends ConsoleLogger { ...@@ -310,7 +310,7 @@ export class UpdateService extends ConsoleLogger {
const archives = _.minBy(packagePlans, (plan) => this.getCostOfArchives(plan)); const archives = _.minBy(packagePlans, (plan) => this.getCostOfArchives(plan));
// console.log('use', archives); // console.log('use', archives);
await this.mirror.lookForArchivesMirror(archives, ip); await this.mirror.lookForArchivesMirror(archives, ip);
archives.forEach(a => a.fillUrl(this.cdnUrl, this.cdnUrlOversize)); archives.forEach((a) => a.fillUrl(this.cdnUrl, this.cdnUrlOversize));
return { return {
archives, archives,
}; };
......
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