Commit 3bc451f6 authored by nanahira's avatar nanahira

add path and hash to middleware post

parent 91aae03f
Pipeline #17458 failed with stages
in 4 minutes and 55 seconds
......@@ -21,6 +21,8 @@ export interface Middleware {
export interface UploadInfo {
url: string;
size?: number;
path: string;
hash: string;
customSuffix?: string;
customMime?: string;
}
......@@ -77,6 +79,8 @@ export class MirrorService extends ConsoleLogger {
const uploadInfo: UploadInfo = {
url: this.packageS3.getCdnUrl(archive.archiveFullPath),
size: archive.size,
path: archive.path,
hash: archive.hash,
};
return _.compact(
await Promise.all(
......
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