fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Has been cancelled
Some checks failed
GBCI / build (push) Has been cancelled
This commit is contained in:
parent
905dc5642e
commit
2617409867
2 changed files with 3 additions and 3 deletions
|
@ -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 });
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue