fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Has been cancelled

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-03-29 23:12:53 -03:00
parent 905dc5642e
commit 2617409867
2 changed files with 3 additions and 3 deletions

View file

@ -522,7 +522,7 @@ export class GBDeployer implements IGBDeployer {
secretKey: process.env.DRIVE_SECRET,
});
const bucketName = process.env.DRIVE_ORG_PREFIX + min.botId + '.gbai';
const bucketName = (process.env.DRIVE_ORG_PREFIX + min.botId + '.gbai').toLowerCase();
if (!(await GBUtil.exists(localPath))) {
await fs.mkdir(localPath, { recursive: true });

View file

@ -188,7 +188,7 @@ export class GBOService {
});
const bucketName = `${process.env.DRIVE_ORG_PREFIX}${botName}.gbai`;
const bucketName = `${process.env.DRIVE_ORG_PREFIX}${botName}.gbai`.toLowerCase();
const packageName = `${templateName.split('.')[0]}.${kind}`;
const localTemplatePath = path.join(process.env.PWD, 'templates', templateName, packageName);
const minioDestinationPath = `${botName}.${kind}`;
@ -380,7 +380,7 @@ export class GBOService {
// Ensure bucket exists
name = `${process.env.DRIVE_ORG_PREFIX}${name}`;
name = `${process.env.DRIVE_ORG_PREFIX}${name}`.toLowerCase();
const bucketExists = await minioClient.bucketExists(name);
if (!bucketExists) {
await minioClient.makeBucket(name);