feat: added auto bot creator when bot is missing by taking the user old server encrypted private key

This commit is contained in:
=
2024-07-30 23:19:31 +05:30
parent 6e7997b1bd
commit b37f780c4c
3 changed files with 102 additions and 8 deletions
@@ -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." });
}