mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 10:18:16 +00:00
feat: added auto bot creator when bot is missing by taking the user old server encrypted private key
This commit is contained in:
@@ -60,7 +60,7 @@ export const projectBotServiceFactory = ({
|
||||
|
||||
const project = await projectDAL.findById(projectId, tx);
|
||||
|
||||
if (project.version === ProjectVersion.V2) {
|
||||
if (project.version === ProjectVersion.V2 || project.version === ProjectVersion.V3) {
|
||||
throw new BadRequestError({ message: "Failed to create bot, project is upgraded." });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user