feat: resolved invite failing and removed all unused things from frontend on previous upgrade

This commit is contained in:
=
2024-08-01 20:12:23 +05:30
parent e95d7e55c1
commit 79e414ea9f
17 changed files with 43 additions and 252 deletions
@@ -540,7 +540,7 @@ export const projectMembershipServiceFactory = ({
const project = await projectDAL.findById(projectId);
if (!project) throw new BadRequestError({ message: "Project not found" });
if (project.version !== ProjectVersion.V2) {
if (project.version === ProjectVersion.V1) {
throw new BadRequestError({
message: "Please ask your project administrator to upgrade the project before leaving."
});