Skip to content

Commit 4ca3b17

Browse files
authored
chore: fix s3 prefix; prune app templates (#292)
* fix: upload file prefix * chore: prune some app templates
1 parent a6fcc27 commit 4ca3b17

File tree

8 files changed

+3
-2196
lines changed

8 files changed

+3
-2196
lines changed

lib/s3/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ export class S3Service {
252252
? !input.prefix?.endsWith('/')
253253
? input.prefix + '/'
254254
: input.prefix
255-
: PluginBaseS3Prefix;
256-
const objectName = `${prefix}/${input.keepRawFilename ? '' : this.generateFileId() + '-'}${originalFilename}`;
255+
: PluginBaseS3Prefix + '/';
256+
const objectName = `${prefix}${input.keepRawFilename ? '' : this.generateFileId() + '-'}${originalFilename}`;
257257
if (input.expireMins) {
258258
await MongoS3TTL.create({
259259
bucketName: this.config.bucket,

modules/model/avatars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const uploadLogoFile = async (logoPath: string, providerName: string): Promise<v
117117
return;
118118
}
119119

120+
console.log('1');
120121
await publicS3Server.uploadFileAdvanced({
121122
path: logoPath,
122123
prefix: UploadModelsS3Path.replace('/', '') + `/${providerName}`,

modules/workflow/templates/animalLife.json

Lines changed: 0 additions & 503 deletions
This file was deleted.

modules/workflow/templates/chatGuide.json

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)