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 { ...@@ -21,6 +21,8 @@ export interface Middleware {
export interface UploadInfo { export interface UploadInfo {
url: string; url: string;
size?: number; size?: number;
path: string;
hash: string;
customSuffix?: string; customSuffix?: string;
customMime?: string; customMime?: string;
} }
...@@ -77,6 +79,8 @@ export class MirrorService extends ConsoleLogger { ...@@ -77,6 +79,8 @@ export class MirrorService extends ConsoleLogger {
const uploadInfo: UploadInfo = { const uploadInfo: UploadInfo = {
url: this.packageS3.getCdnUrl(archive.archiveFullPath), url: this.packageS3.getCdnUrl(archive.archiveFullPath),
size: archive.size, size: archive.size,
path: archive.path,
hash: archive.hash,
}; };
return _.compact( return _.compact(
await Promise.all( 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