Commit 73db6be9 authored by nanahira's avatar nanahira

no upload anything else

parent 7eea4203
Pipeline #17466 passed with stages
in 2 minutes and 28 seconds
...@@ -420,7 +420,8 @@ export class AppService extends ConsoleLogger { ...@@ -420,7 +420,8 @@ export class AppService extends ConsoleLogger {
async uploadAssets(file: Express.Multer.File) { async uploadAssets(file: Express.Multer.File) {
const s3Url = await this.assetsS3.uploadAssets(file); const s3Url = await this.assetsS3.uploadAssets(file);
if (!s3Url) { return s3Url;
/*if (!s3Url) {
return null; return null;
} }
const resultFromMirror = await this.mirror.uploadWithRandomMiddleware({ const resultFromMirror = await this.mirror.uploadWithRandomMiddleware({
...@@ -429,7 +430,7 @@ export class AppService extends ConsoleLogger { ...@@ -429,7 +430,7 @@ export class AppService extends ConsoleLogger {
customMime: file.mimetype, customMime: file.mimetype,
// customSuffix: path.extname(file.originalname) || undefined; // customSuffix: path.extname(file.originalname) || undefined;
}); });
return resultFromMirror ? resultFromMirror.url : s3Url; return resultFromMirror ? resultFromMirror.url : s3Url;*/
} }
/* /*
......
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