Commit 91aae03f authored by nanahira's avatar nanahira

put together

parent 1685dac9
Pipeline #17454 passed with stages
in 1 minute and 25 seconds
......@@ -193,9 +193,9 @@ export class MirrorService extends ConsoleLogger {
}
try {
const { data } = await lastValueFrom(
this.http.patch<{ url: string }>(middleware.url, mirror, { responseType: 'json', timeout: 30000 })
this.http.patch<ReturnMessage<string>>(middleware.url, mirror, { responseType: 'json', timeout: 30000 })
);
return data.url;
return data.data;
} catch (e) {
this.error(`Failed getting mirror url for ${mirror.path} with middleware ${middleware.identifier}: ${e.toString()}`);
return;
......
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